diff --git a/frontend/src/lib/components/account/EditRequestModal.svelte b/frontend/src/lib/components/account/EditRequestModal.svelte
index 1e8940c..a1c0070 100644
--- a/frontend/src/lib/components/account/EditRequestModal.svelte
+++ b/frontend/src/lib/components/account/EditRequestModal.svelte
@@ -788,7 +788,7 @@
Arrange a custom booking →
@@ -1911,13 +1911,13 @@
{#if emailSuggestion === 'login'}
This email belongs to a registered user. Please
- log in
+ log in
instead to access your bookings and rewards.
{:else if emailSuggestion === 'check'}
This email might belong to an existing account. Please double-check or
- log in.
+ log in.
{/if}
{/if}
diff --git a/frontend/src/lib/components/layout/NavBar.svelte b/frontend/src/lib/components/layout/NavBar.svelte
index 235ab30..4641463 100644
--- a/frontend/src/lib/components/layout/NavBar.svelte
+++ b/frontend/src/lib/components/layout/NavBar.svelte
@@ -131,7 +131,7 @@
{#if isLoading}
{:else}
- (open = false)}
>
diff --git a/frontend/src/lib/stores/auth.svelte.ts b/frontend/src/lib/stores/auth.svelte.ts
index 8e136b5..cc91fb6 100644
--- a/frontend/src/lib/stores/auth.svelte.ts
+++ b/frontend/src/lib/stores/auth.svelte.ts
@@ -166,6 +166,7 @@ class AuthStore {
}
}
this.clearAuth();
+
goto('/', { invalidateAll: true });
};
diff --git a/frontend/src/routes/+page.svelte b/frontend/src/routes/+page.svelte
index ad6423d..56bb060 100644
--- a/frontend/src/routes/+page.svelte
+++ b/frontend/src/routes/+page.svelte
@@ -9,6 +9,7 @@
// Redirect admins to /today (their homepage)
$effect(() => {
if (!authStore.isLoading && authStore.currentUser?.role === 'admin') {
+
goto('/today', { replaceState: true });
}
});
diff --git a/frontend/src/routes/account/+page.svelte b/frontend/src/routes/account/+page.svelte
index 52bc80d..7208ca0 100644
--- a/frontend/src/routes/account/+page.svelte
+++ b/frontend/src/routes/account/+page.svelte
@@ -51,6 +51,7 @@
if (!authStore.isAuthenticated) {
pageState = 'unauthorized';
+
goto('/login', { replaceState: true });
return;
}
@@ -1232,6 +1233,7 @@
if (response.ok) {
toast.success('Account deleted successfully', { id: loadingToast });
+
authStore.logout();
goto('/');
} else {
@@ -2593,6 +2595,7 @@
Data Privacy
+
View and export all personal data we hold about you