diff options
| author | Aditya Telange <21258296+adityatelange@users.noreply.github.com> | 2020-11-17 15:25:39 +0530 |
|---|---|---|
| committer | Aditya Telange <21258296+adityatelange@users.noreply.github.com> | 2020-11-17 15:25:39 +0530 |
| commit | 3c28b8a8b22f2727aa97f17dd73a06bf720a9c07 (patch) | |
| tree | 1d598d48d419a72c364b17b26790110a6e5d3f09 | |
| parent | 2a06c26e9f80b95fd09b18c2708d1cca3d0151b2 (diff) | |
footer: fix scroll for non ASCII anchors
closes #78
| -rw-r--r-- | layouts/partials/footer.html | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/layouts/partials/footer.html b/layouts/partials/footer.html index 3094209..a1f4af0 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" }); }); |
