From 424d30998da6750a156376ff750255e9a31b9b35 Mon Sep 17 00:00:00 2001 From: Jake Howard Date: Mon, 3 Jan 2022 14:18:23 +0000 Subject: [PATCH] Override current state rather than creating new ones --- static/src/js/app.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/static/src/js/app.js b/static/src/js/app.js index f03272b..720ee6e 100644 --- a/static/src/js/app.js +++ b/static/src/js/app.js @@ -23,7 +23,7 @@ function scrollTo(offset) { function resetHash() { // Clear URL hash, without reloading the page - https://stackoverflow.com/a/15323220 - window.history.pushState('', document.title, window.location.pathname); + window.history.replaceState(null, document.title, window.location.pathname); } $(document).ready(function() {