By samundra on
Hello,
My problem is similar to this issue (http://drupal.org/node/222193)
I have two languages on my Drupal 6 installation, English and German, set as path prefix and fallback. As a user, I log into http://myhost/drupal6/
The interface is in the language I chose (say, German).
I go to my account, then change my default language from German to English. Then, instead of returning to http://myhost/drupal6/user/2/edit , I am redirected to http://myhost/drupal6/de/user/2/edit .
How can I workaround this situation I have tried every url redirections but couldn't workout. Any idea would help me. I have already spent hours on this. This is killing me.
Comments
[Resolved] I have solved this issue, by
I have solved this issue, by creating a custom module and kept the following piece of code in module's init() code.
What above code does is checks for the user's default language and the language in the browser url, if they both match leaves the language unaltered otherwise, the language chosen by user is taken. If the selection is English, the language prefix is left empty.
so the url
http://www.example.com/jp/homepage will become http://www.example.com/homepage.
It also depends on the configuration language negotiations.