diff --git a/frontend/src/lib/logout.ts b/frontend/src/lib/logout.ts index 214ab79fd9..81cfbb5702 100644 --- a/frontend/src/lib/logout.ts +++ b/frontend/src/lib/logout.ts @@ -12,7 +12,7 @@ export function logoutWithRedirect(rd?: string): void { ? `error=${encodeURIComponent('You have been logged out because your session has expired.')}&` : '' clearCookies() - goto(`/user/login?${error}${rd ? 'rd=' + encodeURIComponent(rd) : ''}`) + goto(`/user/login?${error}${rd ? 'rd=' + encodeURIComponent(rd) : ''}`, { replaceState: true }) } } diff --git a/frontend/src/routes/__layout@root.svelte b/frontend/src/routes/__layout@root.svelte index 40a5271cb0..788899426d 100644 --- a/frontend/src/routes/__layout@root.svelte +++ b/frontend/src/routes/__layout@root.svelte @@ -1,5 +1,5 @@