diff options
author | Bjørn Erik Pedersen <bjorn.erik.pedersen@gmail.com> | 2022-09-17 11:25:37 +0200 |
---|---|---|
committer | Bjørn Erik Pedersen <bjorn.erik.pedersen@gmail.com> | 2022-09-18 15:16:11 +0200 |
commit | 6be6752c8a0175210f0f277282e212a2cec4b4f2 (patch) | |
tree | 49318d8adea669126f9cd4a26f830209e1fd2d98 /commands/commands_test.go | |
parent | 8e9dce1092133a44795062dbfdc917468c0c7056 (diff) |
server: Fix redirects when file path contains bytes > 0x80
Fixes #10287
Diffstat (limited to 'commands/commands_test.go')
-rw-r--r-- | commands/commands_test.go | 13 |
1 files changed, 11 insertions, 2 deletions
diff --git a/commands/commands_test.go b/commands/commands_test.go index d37ec1f0d..5b5e9aa81 100644 --- a/commands/commands_test.go +++ b/commands/commands_test.go @@ -47,7 +47,7 @@ func TestExecute(t *testing.T) { c.Assert(resp.Err, qt.IsNil) result := resp.Result c.Assert(len(result.Sites) == 1, qt.Equals, true) - c.Assert(len(result.Sites[0].RegularPages()) == 1, qt.Equals, true) + c.Assert(len(result.Sites[0].RegularPages()) == 2, qt.Equals, true) c.Assert(result.Sites[0].Info.Params()["myparam"], qt.Equals, "paramproduction") }) @@ -364,9 +364,18 @@ Content `) + writeFile(t, filepath.Join(dir, contentDir, "hügö.md"), ` +--- +weight: 2 +--- + +This is hügö. + +`) + writeFile(t, filepath.Join(dir, "layouts", "_default", "single.html"), ` -Single: {{ .Title }} +Single: {{ .Title }}|{{ .Content }} `) |