Skip to content

Commit

Permalink
globalseo-ignore-link
Browse files Browse the repository at this point in the history
  • Loading branch information
jemikanegara committed Dec 5, 2024
1 parent 292008a commit 9892d00
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion replaceLinks.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ const getUnprefixedPathname = require("./utils/translation-mode/getUnprefixedPat

function replaceLinks(window, {langParam, lang, translationMode, prefix, sourceOriginHostname}) {
// Select all anchor tags
let anchors = window.document.querySelectorAll('a');
const anchors = document.querySelectorAll('a:not(.globalseo-ignore-link)');

// domain
const domain = window.location.hostname.split('.').slice(1).join('.');
Expand Down

0 comments on commit 9892d00

Please sign in to comment.