diff --git a/web/src/hashchange.js b/web/src/hashchange.js index 2a81dbaefd..88c1a344c4 100644 --- a/web/src/hashchange.js +++ b/web/src/hashchange.js @@ -420,6 +420,10 @@ function hashchanged(from_reload, e) { } export function initialize() { + // We don't want browser to restore the scroll + // position of the new hash in the current hash. + window.history.scrollRestoration = "manual"; + $(window).on("hashchange", (e) => { hashchanged(false, e.originalEvent); });