diff --git a/front/src/App.svelte b/front/src/App.svelte index 31d7b3b..7ce8bbc 100644 --- a/front/src/App.svelte +++ b/front/src/App.svelte @@ -88,8 +88,10 @@ } onMount(() => { - if (window.location.pathname === "/profile") + if (window.location.pathname === "/profile") { appState = APPSTATE.PROFILE; + history.replaceState({ appState: "/profile" }, "", "/profile"); + } else history.replaceState({ appState: "" }, "", "/"); window.onpopstate = (e: PopStateEvent) => {