Problem with $document->getFullPath() in Chinese when using LinkGenerator for DataObjects #16761
-
Hi, I have a problem with a Chinese language site. When I link Chinese pages internally via regular Pimcore links the URLs to the page contain the Chinese special chars. But if I generate links for Data Objects via a link generator the Chinese special chars in the URL are encoded like "%25E5%25B7%25A5%25E8%2589%25BA%25E6%258A%2580%25E6%259C%25AF" instead of "工艺技术". I did some debugging and found out the problem is in the method "getFullPath" in the Document class. This method calls the method "prepareFrontendPath" at the end which does a "urlencode_ignore_slash".
Is it already known, that $document->getFullPath() doesn't work correctly with languages like Chinese? The method $document->getPath() doesn't do this special encodings. Does anyone know why this is done? Is there any solution for getting the same value as for $document->getFullPath() but without the encodings? |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 1 reply
-
weird, don't know the idea behind it, but seems you would have to do |
Beta Was this translation helpful? Give feedback.
weird, don't know the idea behind it, but seems you would have to do
urldecode(rawurldecode('%25E5%25B7%25A5%25E8%2589%25BA%25E6%258A%2580%25E6%259C%25AF'));
to get back工艺技术