[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:
@@ -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;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user