From 55a5ec432d67a8838455011e949aa7a46464f3d1 Mon Sep 17 00:00:00 2001 From: Berat Yuseinov Date: Wed, 12 Mar 2025 17:20:49 +0200 Subject: [PATCH] Add hash to the historyState --- krait-ui/src/actions/fetch-records.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/krait-ui/src/actions/fetch-records.ts b/krait-ui/src/actions/fetch-records.ts index 7f3da7d..ab6e8c9 100644 --- a/krait-ui/src/actions/fetch-records.ts +++ b/krait-ui/src/actions/fetch-records.ts @@ -50,7 +50,7 @@ export default class FetchRecords extends BaseAction< } const currentUrl = new URL(window.location.href); - const historyState = `${currentUrl.pathname}${url.search}`; + const historyState = `${currentUrl.pathname}${url.search}${currentUrl.hash}`; history.replaceState({}, '', historyState); return {