From 7a39560f21aca6845883d667bdb264257024556c Mon Sep 17 00:00:00 2001 From: Aevann Date: Sat, 30 Sep 2023 15:03:17 +0300 Subject: [PATCH] dont use replacestate, it fucks shit up --- files/assets/js/core.js | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/files/assets/js/core.js b/files/assets/js/core.js index 84099ec11..d8dd3a712 100644 --- a/files/assets/js/core.js +++ b/files/assets/js/core.js @@ -645,10 +645,7 @@ if (screen_width <= 768) { if (object) { object.addEventListener('shown.bs.modal', function (e) { const new_href = `${location.href.split('#')[0]}#m-${e.target.id}` - if (location.hash) - history.replaceState({}, '', new_href) - else - history.pushState({}, '', new_href) + history.pushState({}, '', new_href) }); object.addEventListener('hide.bs.modal', function (e) {