diff options
author | Bjørn Erik Pedersen <bjorn.erik.pedersen@gmail.com> | 2019-04-20 12:50:57 +0300 |
---|---|---|
committer | Bjørn Erik Pedersen <bjorn.erik.pedersen@gmail.com> | 2019-04-20 16:01:20 +0300 |
commit | c7dd66bfe2e32430f9b1a3126c67014e40d8405e (patch) | |
tree | 6de0c2d35426f390c8c40e54c47a5d5b7a565362 /resources/page | |
parent | 7aeeb60d7ee71690461df92ff41cb8b2f7f5aa61 (diff) |
Fix links for non-HTML output formats
They were not correct for regular pages.
Fixes #5877
Diffstat (limited to 'resources/page')
-rw-r--r-- | resources/page/page_paths.go | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/resources/page/page_paths.go b/resources/page/page_paths.go index 89616d421..fd231e72b 100644 --- a/resources/page/page_paths.go +++ b/resources/page/page_paths.go @@ -235,7 +235,7 @@ func CreateTargetPaths(d TargetPathDescriptor) (tp TargetPaths) { pagePath = pjoin(pagePath, d.Type.BaseName+d.Type.MediaType.FullSuffix()) } - if isUgly && !isHtmlIndex(pagePath) { + if !isHtmlIndex(pagePath) { link = pagePath } |