Multi-byte character strings immediately after language prefix cause a 404
Closed this issue · 3 comments
Hi, First of all, thanks for this very handy module. It has been a big help when making multilingual sites. Unfortunately, I have two sites that are showing a similar problem on the site sections that use non-Roman characters in the URL. One site is English/Vietnamese using SS 3.0.5 and compatible versions of Translatable and LanguagePrefix modules. The other site is English/Thai using SS 3.1 stable with current downloads from the master branch of Translatable and LanguagePrefix modules. This problem is a little hard to describe since this comment box keeps changing UTF8 characters into code, so please imagine that the portions of the URL suffixed with (in-thai) are actually Thai characters.
Links like this do not work:
http://asia.mysite.com/thailand/th/page-name(in-thai)
http://asia.mysite.com/thailand/th/our-technology(in-thai)/page-name(in-thai)
However, links like this do work:
http://asia.mysite.com/thailand/th/page-name-th
http://asia.mysite.com/thailand/th/our-technology-th/page-name(in-thai)
Am I missing something obvious here, or is this actually a bug?
Thanks, Seth
First of all - can you confirm that it works without the languageprefix module, so with translatable only? It looks like a bug either way.
Second: would the following url work:
http://asia.mysite.com/thailand/th/page-name-th/page-name(in thai)/page-name(in thai)
Trying to find out if it's only that the urlsegment after the language prefix cannot be in thai. Also I have no experience with non-roman sites/languages. If this is actually a languageprefix issue, could you, say, build a very simple testsite in 3.1 in thai that has these issues and then send me a copy of the database?
Thanks for your reply. First, I guess this is a translatable bug. I made a fresh install of SS 3.1 with translatable only and the same bug occurred. Just going to the Home page prompted a 404 when the URL used พันธกิจ instead of Home.
Second, I can confirm that the Thai language URLSegments are working normally after the first one. I have tested using Thai in the second and third level down from the common webroot.
I have a simple 3.1 site prepared (just home page, 404, and 500 in English and Thai). It is in a mySQL database. If you would like me to send it to you, please let me know what format is best and where I should send it.
Ok, If this is indeed a Translatable bug (and it doesn't occur in a default 3.1 install without Translatable installed) you should probably start by reporting the issue here, if someone didn't already:
https://github.com/silverstripe/silverstripe-translatable/issues?state=open
Others might face this as well and maybe someone already has a solution..?