Installation and deployment Questions on installation, system configuration and deployment to the live server.
Version 5.x > Installation and deployment > how to add culture as part of the URL and not as query param View modes: 
User avatar
Member
Member
Willy - 7/6/2011 3:05:53 AM
   
how to add culture as part of the URL and not as query param
Hi,

I've testing a page using different cultures. I have added hong kong culture.

this is the structure i want to follow

for english: http://localhost/hk/en/default.aspx
for chinese: http://localhost/hk/zh/default.aspx

below is what's happening;

http://localhost/hk/en/default.aspx?lang=zh-HK

Regards,
Willy

User avatar
Member
Member
Willy - 7/8/2011 2:35:19 AM
   
RE:how to add culture as part of the URL and not as query param
Ok, I've achieved the goal by creating document alias and the query param does the redirect.

another issue I've encountered is that in Firefox, when i change language culture the redirect works and give me a translated content. however, when i try to go back to it's original language Firefox doesn't allow and nothing happens.

In Internet Explorer however, I can go back and forth between languages without any issue.

Please help.

Willy

User avatar
Kentico Developer
Kentico Developer
kentico_helenag - 7/11/2011 1:41:51 AM
   
RE:how to add culture as part of the URL and not as query param
Hi Willy,


it is strange. Do you test the same page?

Is your site live so that we can see the behavior?

Could you please send us screenshots of document Properties -> General and document Properties -> URLs of the testing document?


Best regards,
Helena Grulichova

User avatar
Member
Member
Willy - 7/11/2011 1:56:41 AM
   
RE:how to add culture as part of the URL and not as query param
Hi Helen,

Yes, I test the same page and it's really strange. I just found out that it affects firefox and IE 9. In IE8, there were no issues.

I'm only on a testing environment. Below are the screenshot for both languages.
http://i55.photobucket.com/albums/g148/xerobox/enlanguage.png
http://i55.photobucket.com/albums/g148/xerobox/cnlanguage.png
http://i55.photobucket.com/albums/g148/xerobox/URLprop_cnlanguage.png
http://i55.photobucket.com/albums/g148/xerobox/URLprop_enlanguage.png

Thanks!

Willy


User avatar
Kentico Developer
Kentico Developer
kentico_helenag - 7/11/2011 2:57:44 AM
   
RE:how to add culture as part of the URL and not as query param
Hi Willy,


thank you for the screenshots. The configuration seems to be OK.

Do you the CMSUseCultureForBestPageInfoResult key in your web.config?


Best regards,
Helena Grulichova

User avatar
Member
Member
Willy - 7/11/2011 3:14:29 AM
   
RE:how to add culture as part of the URL and not as query param
the key is not in the web config file.

User avatar
Kentico Developer
Kentico Developer
kentico_ivanat - 7/11/2011 3:25:31 AM
   
RE:how to add culture as part of the URL and not as query param
Hi,

could you please add following line of code to the web.config file?

<add key="CMSUseCultureForBestPageInfoResult" value="true" />

It should fix the issue.

If so, the backup of your site requested in this thread is not needed.

Best regards,
Ivana Tomanickova

User avatar
Member
Member
Willy - 7/11/2011 3:50:32 AM
   
RE:how to add culture as part of the URL and not as query param
Hi,

I've added the key but the issue is still there. Please advise.

Willy

User avatar
Kentico Developer
Kentico Developer
kentico_ivanat - 7/11/2011 6:34:49 AM
   
RE:how to add culture as part of the URL and not as query param
Hi,

that is strange. Could you please send the export of your site to support@kentico.com? Please do not forget to add a reference to this thread.

Best regards,
Ivana Tomanickova

User avatar
Member
Member
Willy - 7/12/2011 10:52:25 PM
   
RE:how to add culture as part of the URL and not as query param
Hi,

I've forwarded the export file to support email.

Thanks,
Willy

User avatar
Kentico Developer
Kentico Developer
kentico_ivanat - 7/13/2011 4:10:23 AM
   
RE:how to add culture as part of the URL and not as query param
Hi,

we searched for the issue and there seems to be a bug in IE9 (similar with Firefox 5). It is described in the below link. The forum provides a workaround which works fine.
http://social.msdn.microsoft.com/Forums/en-US/iewebdevelopment/thread/7316341d-f901-4520-8561-c045fc696c73/

Unfortunately, we are not able to fix it from our side.

Best regards,
Ivana Tomanickova