Culture Picker Not Redirecting

Topics: Troubleshooting
Jul 20, 2011 at 10:17 PM

I am experiencing the problem spoken about on this thread concerning the culture picker not always redirecting to the proper url. Sometimes it works...sometimes it doesn't. Any thoughts? For example, /products-services/news-es-es and I change the culture to french, it processes the culture change but the url remains the same.

CulturePickerVersion: 1.1.3.1
OrchardVersion: 1.1.30

Thoughts?

Jul 21, 2011 at 5:37 PM

This ended up being a case sensitivity issue with the URL on line 31 of the Culture Picker Module. When you are switching cultures from an existing culture, if the url has "es-es" instead of "fr-fr" then it will not match a route for the  url. The ILocalizableContentService TryGetRouteForUrl() method returns false. I have seen mixed documentation on URL case sensitivity, but I fixed it by making all my navigation the proper case.

 

All working now.

Jul 31, 2011 at 10:31 AM

Very interesting point. I will fix this issue.

P.S. Please, add bugs directly to the Issue Tracker in future. Many thanks in advance!