diff --git a/js/main.js b/js/main.js index f2e50f8..0e32725 100644 --- a/js/main.js +++ b/js/main.js @@ -152,7 +152,7 @@ export function initBaseComponents(Alpine) { .slice() .reverse() .find((link) => { - const el = document.querySelector(link.hash) + const el = document.querySelector(decodeURIComponent(link.hash)) return el.getBoundingClientRect().top <= 100 }) ?? links[0]