diff --git a/ldf.js b/ldf.js index a919363..04e9aac 100644 --- a/ldf.js +++ b/ldf.js @@ -71,7 +71,7 @@ var ldf = { }, updatePageLinks: function () { document.querySelectorAll("a").forEach(function (a) { - if (a.href && a.href.includes(location.href)) { + if (a.href && a.href.includes(location.href.split("#")[0])) { a.removeEventListener("click", ldf.helpers.listener); a.addEventListener("click", ldf.helpers.listener); }