From 3c28b8a8b22f2727aa97f17dd73a06bf720a9c07 Mon Sep 17 00:00:00 2001 From: Aditya Telange <21258296+adityatelange@users.noreply.github.com> Date: Tue, 17 Nov 2020 15:25:39 +0530 Subject: [PATCH] footer: fix scroll for non ASCII anchors closes #78 --- layouts/partials/footer.html | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/layouts/partials/footer.html b/layouts/partials/footer.html index 3094209b..a1f4af0f 100644 --- a/layouts/partials/footer.html +++ b/layouts/partials/footer.html @@ -31,7 +31,7 @@ anchor.addEventListener("click", function (e) { e.preventDefault(); var id = this.getAttribute("href").substr(1); - document.querySelector(`[id='${id}']`).scrollIntoView({ + document.querySelector(`[id='${decodeURIComponent(id)}']`).scrollIntoView({ behavior: "smooth" }); });