Problem/Motivation
Hi all,
I have a Drupal site with translations (english, german, italian and french) enabled and some translated contents. I have english configured for the backend and for the admin account.
The situation is:
I'm on the content list and the language is english. Then I edit the german translation of a page. The URL changes to "/de/node/1/edit?destination=/en/admin/content"
If I save the changes, then I’m redirected to /en/admin/content, but if I don't save the changes, but I click again on Content (or anywhere else) and then the URL remains in german, also /de/admin/content. The texts are still displayed in english because the language of the admin user is set in the profile to "english".
Until now I didn't realize this behavior, but in the current project a PM saw it and said that it should never happen. Also, he thinks the URL should change to /en/admin/content event if don’t save the changes.
I'm now a bit confused.
On the one hand I think it's a normal behavior because you started the edition of a translation (german) and never finished it, because you have never saved or canceled the changes, but just clicked in another part of the site.
But on the other hand I only edited a translation and then I came back to a page wich is not in edit mode and the URL should recover the original language I was using.
Have some of you realized this behavior too?
In that case, do you think it's a normal behavior or is it something that needs to be fixed?
Thanks in advance for your answers.
Steps to reproduce
You should have a Drupal with more than one language enabled. Let's say: english and spanish.
- Create a new node
- Add a spanish translation for that node.
- Visit the original node you created.
- Edit the translation you added in the step 2. The URL looks like /es/node/1/edit?destination=/en/admin/content
- Without saving the translation, click anywhere else on the page (i.e Content link in Toolbar).
- In the URL you can see /es/admin/content
Info: If didn't set the language in the user profile, you'll see the texts translated too, but if you set it, then the text are still displayed in the language you set in the user profile.