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 854eb1a commit fca1f4f
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 @@ -19,7 +19,7 @@ function replaceLinks(window, {langParam, lang, translationMode, prefix, sourceO
const isHashTagInSamePathname = (anchorUrlObj.pathname == window.location.pathname) && anchorUrlObj.href.includes("#");

// anchor.getAttribute("href")?.startsWith?.("#") || (anchor.href == `${window.location.href}#`)
if (!isHashTagInSamePathname) {
if (isHashTagInSamePathname) {
// Check if the link is a hash tag
continue;
}
Expand Down

0 comments on commit fca1f4f

Please sign in to comment.