{{slug}} attribute in navigation.hbs skips most if not all non-ascii characters #10258
Labels
good first issue
[triage] Start here if you've never contributed before.
help wanted
[triage] Ideal issues for contributors to help with
server / core
Issues relating to the server or core of Ghost
Issue Summary
{{slug}}
attribute in navigation.hbs ignores non-ascii characters such asÀ
(Latin-1 Supplement),А
(Cyrillic) and文
(CJK Unified Idegraphs).To Reproduce
{{slug}}
attribute will be added to the html tag'sclass
.This emits an empty string for every label consisting only non-ASCII characters, making the
{{slug}}
attribute virtually useless or unexpectedly-behaving on non-English sites.Consider romanizing slugs like the automatic post url generation did.
And, consider making slugs customizable via Settings > Design > Navigation.
And, consider providing a
{{slug-base64}}
or something similar that yields base64 encoded utf-8 data, to handle non-romanizable characters (emojis?) and characters with multiple romanizations (乐
in Mandarin Chinese can be romanized as eitherle
oryue
) better.Technical details:
The text was updated successfully, but these errors were encountered: