From 564f0336c95abb9291e33a7bb27c8a36d282625e Mon Sep 17 00:00:00 2001 From: Sidharth Vinod Date: Sat, 29 May 2021 13:08:05 +0530 Subject: [PATCH] Fix history navigation --- src/lib/util/state.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/lib/util/state.ts b/src/lib/util/state.ts index 44ce933b..ebb839d5 100644 --- a/src/lib/util/state.ts +++ b/src/lib/util/state.ts @@ -84,7 +84,7 @@ export const updateConfig = (config: string, updateEditor: boolean): void => { export const initURLSubscription = (): void => { base64State.subscribe((state: string) => { - window.location.hash = state; + history.replaceState(undefined, undefined, `#${state}`); }); };