From f70a93f6b90390be29981b91efb6a75249639a01 Mon Sep 17 00:00:00 2001 From: Ernest Walzel Date: Thu, 18 Apr 2024 17:10:06 +0200 Subject: [PATCH] Do not change scroll position on back/forward --- resources/js/components/catalog-new/ItemsFilterController.vue | 1 + 1 file changed, 1 insertion(+) diff --git a/resources/js/components/catalog-new/ItemsFilterController.vue b/resources/js/components/catalog-new/ItemsFilterController.vue index 8a0d6b804..ee0b74cbf 100644 --- a/resources/js/components/catalog-new/ItemsFilterController.vue +++ b/resources/js/components/catalog-new/ItemsFilterController.vue @@ -149,6 +149,7 @@ export default { }, mounted() { window.addEventListener('popstate', this.handleHistoryPopState) + window.history.scrollRestoration = 'manual' // Do not change scroll position on back/forward }, beforeUnmount() { window.removeEventListener('popstate', this.handleHistoryPopState)