From 9691c419834c24f8053a010f3486ef1623a1935e Mon Sep 17 00:00:00 2001 From: Aditya Telange <21258296+adityatelange@users.noreply.github.com> Date: Mon, 25 Jan 2021 21:48:15 +0530 Subject: [PATCH] retain history of header link clicks close: #196 --- 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 454c091d..217e73a5 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}`); } }); });