mirror of
https://github.com/gohugoio/hugo.git
synced 2025-08-24 21:56:05 +02:00
@@ -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)
|
||||
}
|
||||
|
Reference in New Issue
Block a user