Skip to content

Commit

Permalink
fix canonical link in original site
Browse files Browse the repository at this point in the history
  • Loading branch information
jemikanegara committed Oct 30, 2024
1 parent 5ac4795 commit 9d1ea40
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 @@ -185,7 +185,7 @@ function extractOptionsFromScript(window, optsArgs = {
}

if (translationMode == "subdomain") {
if (activeLang == originalLang) {
if (!activeLang || (activeLang == originalLang)) {
newCanonicalLinkTag.href = `${window.location.protocol}//${domain}${window.location.pathname}`;
} else {
// Create a new URL object
Expand Down

0 comments on commit 9d1ea40

Please sign in to comment.