Skip to content

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
  • Loading branch information
jemikanegara committed Dec 6, 2024
1 parent 73629ff commit c9c1bc1
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions replaceLinks.js
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@ function replaceLinks(window, {langParam, lang, translationMode, prefix, sourceO
for (let i = 0; i < anchors.length; i++) {
let anchor = anchors[i];

if (!anchor.href) continue;
const anchorUrlObj = new URL(anchor.href);
if (prefix) {
anchorUrlObj.pathname = getUnprefixedPathname(window, prefix, anchorUrlObj.pathname);
Expand Down

0 comments on commit c9c1bc1

Please sign in to comment.