mirror of
https://github.com/gohugoio/hugo.git
synced 2025-08-28 22:19:59 +02:00
Fix unicode menu URLs
Menu urls like /categories/новости-проекта would turn into /categories/d0bdd0bed0b2d0bed181d182d0b8-d0bfd180d0bed0b5d0bad182d0b0, which is illegal, while the directory under the categories/ is created with the original name. It results in 404 not found error. This commit fixes that by make sure that SanitizeUrl() is called last. Fixes #719
This commit is contained in:
@@ -1168,7 +1168,7 @@ func (s *Site) permalinkStr(plink string) string {
|
||||
}
|
||||
|
||||
func (s *Site) prepUrl(in string) string {
|
||||
return helpers.Urlize(s.PrettifyUrl(in))
|
||||
return s.PrettifyUrl(helpers.Urlize(in))
|
||||
}
|
||||
|
||||
func (s *Site) PrettifyUrl(in string) string {
|
||||
|
Reference in New Issue
Block a user