-
Notifications
You must be signed in to change notification settings - Fork 126
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
UrlDecoder problem with multibyte languages #578
Comments
Yes, this may happen. This is why it is recommended to never touch realurl tables. Decoder's reverse lookup for urls is not a full solution, it is emergency solution for cases when cache is missing. It never can replace properly encoded urls from the database entries. |
I noticed a similar problem when dealing with chinese characters. RealURL was able to find the correct page But this caused a bit different issue: The UrlEncoder encodes the urls. Chinese characters are then encoded (e.g. |
Could you check if branch bugfix/578 fixes the issue for Chinese? |
Hi Dmitry, |
I'm currently experiencing the same problem. From my point of view, a solution could be to set the locale to TYPO3\CMS\Core\Utility\PathUtility::pathinfo() |
Hi s2b, that looks like a great solution to me. Tested and fixes my issue. Adapted my pull request accordingly. |
Hi,
On english (L=1 in my case) everything works fine.
EDIT: Fixed my issue with wrong nav links. The TS config.linkVars was not set up correctly. Thanks and kind regards |
In case the corresponding cache entry in tx_realurl_pathdata is still empty or was deleted, then realurl currently is unable to reverse engineer the page id from an multibyte URL like chinese characters.
The reason is that in UrlDecoder in line 1061 the php-function pathinfo is used. This function needs the correct locale to be able to handle multibyte strings. Unfortunately this is set in TYPO3
(via \TYPO3\CMS\Frontend\Controller\TypoScriptFrontendController::settingLocale()) only after the url decoding is done.
The text was updated successfully, but these errors were encountered: