Configure replacement of non-english characters in slug generation #7801
-
When using a language other than english, special charachters in titles etc are replaced when the slug is generated. Is it possible to configure what non-english characters should be replaced by? |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment
-
Hej @g-gullstrand, There is no built-in solution to this. Have a look at this PR #5494 for more in-depth details. The easiest solution would be to listen for the EntrySaving event and manipulate the slug on-the-fly (like replacing You can use a regex if you want to replace more than that one type of character. Not familiar with Swedish apart from Ikeå product names 😅 Hope that helps :) |
Beta Was this translation helpful? Give feedback.
Hej @g-gullstrand,
There is no built-in solution to this. Have a look at this PR #5494 for more in-depth details.
The easiest solution would be to listen for the EntrySaving event and manipulate the slug on-the-fly (like replacing
ä
witha
). Should only be a few lines of code 👍You can use a regex if you want to replace more than that one type of character. Not familiar with Swedish apart from Ikeå product names 😅
Hope that helps :)