resources/page: Respect disablePathToLower for permalink tokens

Fixes #13755
This commit is contained in:
Joe Mooring
2025-05-28 21:57:48 -07:00
committed by Bjørn Erik Pedersen
parent bff5d19121
commit 843ffeb48d
2 changed files with 28 additions and 1 deletions

View File

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