globalseo
Advanced tools
Comparing version 2.2.20 to 2.2.21
@@ -34,3 +34,2 @@ const { isBrowser, BRAND } = require("./utils/configs"); | ||
const hostnameWithoutWWW = hostname.replace("www.", ""); | ||
console.log("DOMAIN", domainFromServer, hostnameWithoutWWW) | ||
if (domainFromServer == hostnameWithoutWWW) { | ||
@@ -194,4 +193,2 @@ tag.setAttribute("href", url.href); | ||
} | ||
console.log("DOC LANG", activeLang) | ||
@@ -278,3 +275,2 @@ if (activeLang && (window.document.documentElement.lang != activeLang)) { | ||
const subdirectoryHref = `${window.location.protocol}//${domain}${originalPathname}` | ||
console.log("PATHNM2", activeSubdirectory, cleanPathname, originalPathname, subdirectoryHref, translationMode) | ||
// append prefix to the original lang because the subdomain will be accessed without the prefix (dont append if subdirectory mode) | ||
@@ -281,0 +277,0 @@ alternateLinkTag.href = translationMode == "subdirectory" ? subdirectoryHref : `${window.location.protocol}//${domain}${getPrefixedPathname(window, domainSourcePrefix, window.location.pathname)}`; |
{ | ||
"name": "globalseo", | ||
"version": "2.2.20", | ||
"version": "2.2.21", | ||
"description": "Translate your React.js or Next.js app with AI", | ||
@@ -5,0 +5,0 @@ "main": "index.js", |
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is too big to display
577761
3620