Skip to content

Commit

Permalink
set params lang for subdomain
Browse files Browse the repository at this point in the history
  • Loading branch information
jemikanegara committed Dec 27, 2024
1 parent 5e45bcf commit 6a6e8f1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion extractOptionsFromScript.js
Original file line number Diff line number Diff line change
Expand Up @@ -168,7 +168,7 @@ function extractOptionsFromScript(window, optsArgs = {

const search = window.location.search;
const params = new URLSearchParams(search);
const paramsLang = optsArgs.activeLanguage || params.get(langParam);
const paramsLang = window.activeSubdomain || window.activeSubdirectory || optsArgs.activeLanguage || params.get(langParam);
window.paramsLang = paramsLang;

const paramsUpdateTranslation = params.get('globalseo_update_translation');
Expand Down

0 comments on commit 6a6e8f1

Please sign in to comment.