feat(logout): improve logout flow

This commit is contained in:
Edouard Vanbelle
2026-08-09 14:09:54 +02:00
parent 321f3ad733
commit 2eb1e8a1d5
4 changed files with 37 additions and 10 deletions
+1 -5
View File
@@ -524,11 +524,7 @@
// landing from `?source=session_expired` (auto-divert on 401 →
// refresh 401). The login page reads the flag, shows the success
// notice, and skips its existing-session probe.
// `resolve()` from `$app/paths` normalises a route-id (adds base
// path prefix); it does NOT accept a query string. Concatenate
// the `?source=logged_out` marker AFTER resolve so the login
// page's onMount branch actually sees it.
await goto(resolve('/login') + '?source=logged_out');
await goto(resolve('/login?source=logged_out'));
}
</script>