footer: fix scroll for non ASCII anchors

closes #78
This commit is contained in:
Aditya Telange 2020-11-17 15:25:39 +05:30
parent 2a06c26e9f
commit 3c28b8a8b2
No known key found for this signature in database
GPG key ID: 82E844EF3DA99E77

View file

@ -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"
});
});