diff options
author | bep <bjorn.erik.pedersen@gmail.com> | 2015-03-07 15:18:00 +0100 |
---|---|---|
committer | bep <bjorn.erik.pedersen@gmail.com> | 2015-03-07 15:18:00 +0100 |
commit | 602ceec06d0ee2065d39b42a646ba72ab443fb81 (patch) | |
tree | 144b8753164213e9810ffb844d62f8895e9e035c /target | |
parent | 851badcb7e819ad425c7eee2f30eee9a73bc37ea (diff) |
Handle 404 thread safely
Replaces hack that temporarily changes a global flag.
Fixes #955
Fixes #939
Diffstat (limited to 'target')
-rw-r--r-- | target/page.go | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/target/page.go b/target/page.go index b02e13925..389089edc 100644 --- a/target/page.go +++ b/target/page.go @@ -46,7 +46,7 @@ func (pp *PagePub) Translate(src string) (dest string, err error) { dir = filepath.Join(pp.PublishDir, dir) } - if pp.UglyUrls || file == "index.html" { + if pp.UglyUrls || file == "index.html" || file == "404.html" { return filepath.Join(dir, fmt.Sprintf("%s%s", name, ext)), nil } |