summaryrefslogtreecommitdiffstats
path: root/resources
diff options
context:
space:
mode:
Diffstat (limited to 'resources')
-rw-r--r--resources/page/page_paths.go2
1 files changed, 2 insertions, 0 deletions
diff --git a/resources/page/page_paths.go b/resources/page/page_paths.go
index fd231e72b..247c4dfcb 100644
--- a/resources/page/page_paths.go
+++ b/resources/page/page_paths.go
@@ -221,6 +221,8 @@ func CreateTargetPaths(d TargetPathDescriptor) (tp TargetPaths) {
link = pagePath
+ // TODO(bep) this should not happen after the fix in https://github.com/gohugoio/hugo/issues/4870
+ // but we may need some more testing before we can remove it.
if baseNameSameAsType {
link = strings.TrimSuffix(link, d.BaseName)
}