Fix links for non-HTML output formats

They were not correct for regular pages.

Fixes #5877
This commit is contained in:
Bjørn Erik Pedersen
2019-04-20 11:50:57 +02:00
parent 7aeeb60d7e
commit c7dd66bfe2
2 changed files with 58 additions and 33 deletions

View File

@@ -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
}