mirror of
https://github.com/gohugoio/hugo.git
synced 2025-08-27 22:09:53 +02:00
resources/page: Respect disablePathToLower for permalink tokens
Fixes #13755
This commit is contained in:
committed by
Bjørn Erik Pedersen
parent
bff5d19121
commit
843ffeb48d
@@ -311,7 +311,7 @@ func (l PermalinkExpander) pageToPermalinkSections(p Page, _ string) (string, er
|
||||
|
||||
// pageToPermalinkContentBaseName returns the URL-safe form of the content base name.
|
||||
func (l PermalinkExpander) pageToPermalinkContentBaseName(p Page, _ string) (string, error) {
|
||||
return l.urlize(p.PathInfo().BaseNameNoIdentifier()), nil
|
||||
return l.urlize(p.PathInfo().Unnormalized().BaseNameNoIdentifier()), nil
|
||||
}
|
||||
|
||||
// pageToPermalinkSlugOrContentBaseName returns the URL-safe form of the slug, content base name.
|
||||
|
Reference in New Issue
Block a user