[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:
parent
1c90b9049b
commit
21d4b3fda9
|
@ -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;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue