mirror of
https://github.com/gohugoio/hugo.git
synced 2025-08-18 21:11:19 +02:00
Fix links for non-HTML output formats
They were not correct for regular pages. Fixes #5877
This commit is contained in:
@@ -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
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user