[FIX] website: force default lang for edit master option

Since user is redirected automatically in his preferred language, the button edit_master redirect always to
the current lang and so not the master.
This commit is contained in:
Jeremy Kersten 2015-05-04 14:55:38 +02:00
parent 1c90b9049b
commit 21d4b3fda9
1 changed files with 1 additions and 0 deletions

View File

@ -60,6 +60,7 @@
ev.preventDefault();
var link = $('.js_language_selector a[data-default-lang]')[0];
if (link) {
link.pathname = $(link).data('lang') + link.pathname
link.search += (link.search ? '&' : '?') + 'enable_editor=1';
window.location = link.attributes.href.value;
}