From 953d4125f6a631c86a8f2cbff4d16b6a6bc2f741 Mon Sep 17 00:00:00 2001 From: Noah Petherbridge Date: Sun, 24 Nov 2024 13:50:16 -0800 Subject: [PATCH] Fix scroll position on Settings deep links --- web/templates/account/settings.html | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/web/templates/account/settings.html b/web/templates/account/settings.html index b500f03..a4f842b 100644 --- a/web/templates/account/settings.html +++ b/web/templates/account/settings.html @@ -1599,16 +1599,16 @@ window.addEventListener("DOMContentLoaded", (event) => { } window.requestAnimationFrame(() => { - window.scrollTo(0, 0); + window.location.hash = window.location.hash; }); }); }) // Show the requested tab on first page load. showTab(window.location.hash.replace(/^#/, '')); - // window.requestAnimationFrame(() => { - // window.scrollTo(0, 0); - // }); + window.requestAnimationFrame(() => { + window.location.hash = window.location.hash; + }); }); // Look & Feel tab scripts.