diff --git a/services/frontend/src/app/profil/AccountData.tsx b/services/frontend/src/app/profil/AccountData.tsx index 9f1edc6..0dca467 100644 --- a/services/frontend/src/app/profil/AccountData.tsx +++ b/services/frontend/src/app/profil/AccountData.tsx @@ -16,7 +16,7 @@ export function AccountData() { setError(null); try { await api("/me", { method: "DELETE", body: { confirm: "DELETE" } }); - window.location.href = "/belepes"; + window.location.href = "/"; } catch (e) { setError(errorText(e)); setBusy(false); diff --git a/services/frontend/src/components/LogoutButton.tsx b/services/frontend/src/components/LogoutButton.tsx index 7d33323..f81ca62 100644 --- a/services/frontend/src/components/LogoutButton.tsx +++ b/services/frontend/src/components/LogoutButton.tsx @@ -13,10 +13,10 @@ export function LogoutButton() { try { await api("/auth/logout", { method: "POST" }); } catch { - // The session may already be gone; go to the login page either way. + // The session may already be gone; go to the home page either way. } window.google?.accounts.id.disableAutoSelect(); - router.replace("/belepes"); + router.replace("/"); router.refresh(); } return (