Customize category and tag pages + improving slugs #3274
Replies: 5 comments 12 replies
-
I think that blog plugin should encode them well, that should be a bug. Edited: Maybe there are some problems, I will check thay out later. |
Beta Was this translation helpful? Give feedback.
-
587eb6c fixes your problem |
Beta Was this translation helpful? Give feedback.
-
Hi @Mister-Hope
I'm sorry, but this doesn't fix the issue I had in mind. I was talking about replacing the UNICODE accentuated characters with ASCII characters (ex: I think the slug should only contain [a-zA-Z0-9] and the "-" character. Is that a request that is doable / acceptable? I'd understand it could become a complex matter. Thanks for taking the time to read this. |
Beta Was this translation helpful? Give feedback.
-
I see. I'll try that |
Beta Was this translation helpful? Give feedback.
-
Are you sure it exposed to customization? I don't see it in beta.231. |
Beta Was this translation helpful? Give feedback.
-
Hi @Mister-Hope
I hope you're doing well.
I'm not sure if I can do it, but, in French, categories or tags like
Santé
orL'Archipelle
don't get evaluated properly.The issue is that the characters get encoded and the RFC3986 says no, that is, URIs cannot contain unicode characters, only ASCII.
The problem is on the accentuated characters or same specials characters like the apostrophe.
Is that an enhancement that you can do? Or can you point me in the location of the code to update to handle that (here?) ?
I think that using the normalization method could work:
Also, in French, we say "Catégorie Santé", not "Santé Catégorie". Where can we update that in the page title? Maybe we could use a single method by printing "Catégorie: Santé" or "Category: Health" and it could be good enough for everyone?
Thanks very much.
Beta Was this translation helpful? Give feedback.
All reactions