Hello,
I have two languages on my Drupal 6 installation, English and French, each assigned to a URL prefix (en and fr). As a user, I log into http://myhost/drupal6/
The interface is in the language I chose (say, French).
I go to my account, then change my default language from French to English. Then, instead of returning to http://myhost/drupal6/user/2/edit , I am redirected to http://myhost/drupal6/fr/user/2/edit .
Is this normal?
Thanks,
David
Comments
Comment #1
gábor hojtsyWell, it might not be intended indeed. It is logical however in that the redirection happens to go the page you were before the form submission, which was a French version of the page.
Comment #2
gábor hojtsyOnce again, this happens because you changed your default language, so now the French has a path prefix, and you are directed back to where you were.
Comment #3
samundra commentedIs there any workaround so that the user is redirected to his/her default language selected in the profile edit form even though the url has path prefix of the previous url redirection. I have the same issue and I tried to redirect the user to his/her default language by over getting the redirection url (removing the fr from the prefix) and then used drupal_goto() function that gives me the error that page is redirectly incorrectly.
Comment #4
samundra commentedI have solved this issue please see http://drupal.org/node/1269640, the code only works for language negotiation set to path prefix with fallback.