Issue
- Special characters, e.g. åäö are shown in friendly URLs, instead of showing the ASCII version.
- Example: page is titled new page åäö becomes
/new-page-åäöinstead of/new-page-aao
Environment
- DXP 7.0+
Resolution
-
This is the currently intended behavior, made by LPS-65233, to support multilingual character usage (in Unicode) for friendly URLs, and there is no option to configure it. There is an open Feature Request you can track: LPS-78008.
-
f you need an immediate resolution, you should consider custom development to implement your own business logic regarding normalization/transliteration. If you need help regarding this, kindly ask your Liferay contact person for further information.
Additional Information
-
At the time of writing, there is a bug: LPS-121817 that is blocking this customization.
-
So your options are:
-
Wait for the bug to be resolved, or
-
Use the workaround:
-
Setting its custom implementation directly in
FriendlyURLNormalizerUtilby using the methodcom.liferay.portal.kernel.util.FriendlyURLNormalizerUtil.setFriendlyURLNormalizer(FriendlyURLNormalizer) -
Or Overriding the default implementation with an Ext plugin like explained in here: Extending Core Classes Using Spring with Ext Plugins.
-
-