summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAditya Telange <21258296+adityatelange@users.noreply.github.com>2021-01-25 21:48:15 +0530
committerAditya Telange <21258296+adityatelange@users.noreply.github.com>2021-01-25 21:48:15 +0530
commit9691c419834c24f8053a010f3486ef1623a1935e (patch)
tree75b4e4d2ed7b58d43d56dcffebbb1826b64a8b85
parent9e99493e696961bf6dfd58c8540184c8ad4132f7 (diff)
retain history of header link clicks
close: #196
-rw-r--r--layouts/partials/footer.html2
1 files changed, 1 insertions, 1 deletions
diff --git a/layouts/partials/footer.html b/layouts/partials/footer.html
index 454c091..217e73a 100644
--- a/layouts/partials/footer.html
+++ b/layouts/partials/footer.html
@@ -48,7 +48,7 @@
if (id === "top") {
history.replaceState(null, null, " ");
} else {
- history.replaceState(null, null, `#${id}`);
+ history.pushState(null, null, `#${id}`);
}
});
});