diff --git a/src/state/fragment-state.ts b/src/state/fragment-state.ts index 18fb4e4..b613d5d 100644 --- a/src/state/fragment-state.ts +++ b/src/state/fragment-state.ts @@ -9,7 +9,7 @@ export function buildUrlForStateParams(state: State) {//partialState: {params: S return `${location.protocol}//${location.host}${location.pathname}#${encodeStateParamsAsFragment(state)}`; } export async function writeStateInFragment(state: State) { - window.location.hash = await encodeStateParamsAsFragment(state); + history.replaceState(state, '', '#' + await encodeStateParamsAsFragment(state)); } async function compressString(input: string): Promise { return btoa(String.fromCharCode(...new Uint8Array(await new Response(new ReadableStream({