Files
Grav-Admin-Plugin/admin.php
David Côté-Tremblay 424e8400f9 Bugfix: Save in wrong lang when multiple tabs open (#1101)
* Bugfix: Save in wrong lang when multiple tabs open

English and french in this PR are used only for example purposes.

When you have multiple tabs opened in different languages, it often cause to ovewrite the french contents with the english contents (or vice-versa, or according to your specific language configuration).

How to reproduce the bug :

1. Open a tab and edit a page in french
2. In another tab, open the same page in english then save
3. Return to the french tab and save
4. **The english contents got overwrited by the french contents**

This patch makes the use of the language code in URL instead of the session when editing a page, preventing to overwrite the contents of another page while power-editing with many tabs in different languages.

* Remove unused scopes about the session language
2017-05-06 11:01:31 -06:00

26 KiB