Unicode slugs? Yes please!
-
Japanese
Chinese
Cyrillic
-
The entire system itself is now no longer restrictive to Latin characters only. Hopefully, this should appease our many international viewers.
I still call
str.toLowerCase();
on the title, although I have no clue whether it actually lowercases unicode text. It seemed to work (sort of) for Turkish, in that İ turned into i...Given that the sole purpose of having slugs is for SEO value, I see no reason why all topics using a non-Latin character set should be sluggified to "-"
Unicode slugs will be available in 0.2.1 (or on latest builds, of course)
-
Whoa, nice.
-
Unicode slug is not fully supported Thai. Upper and lower characters are not showing on the url, eg. "ข่าวและบทวิเคราะห์" -> "ข-าวและบทว-เคราะห"
Can i change url to post id instead?
-
@julian said:
I still call
str.toLowerCase();
on the title, although I have no clue whether it actually lowercases unicode text. It seemed to work (sort of) for Turkish, in that İ turned into i...
-
toLocaleLowerCase
would seem to be the better solution here. Feel free to submit a pull request to fix that up
-
Looks rad