aboutsummaryrefslogtreecommitdiff
path: root/src/routes/login/+page.server.ts
diff options
context:
space:
mode:
authorMartin Kagamino Lehoux <martin@lehoux.net>2026-09-07 10:55:06 +0200
committerMartin Kagamino Lehoux <martin@lehoux.net>2026-09-07 10:55:06 +0200
commit113415ce357a9cea1759d0452ebae6352f8fe36b (patch)
tree109d55552e7007ba1a8c2752692e85eeb0cc6168 /src/routes/login/+page.server.ts
parent8cd634e51b79200848068ef45bd3fb700758c394 (diff)
Split groceries domain out of the app root
Move the grocery list, catalog, and categories routes under /groceries/ so the app home can host the projects/routines overview next. Update nav to exact-path matching, login redirect default, and layout title.
Diffstat (limited to 'src/routes/login/+page.server.ts')
-rw-r--r--src/routes/login/+page.server.ts4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/routes/login/+page.server.ts b/src/routes/login/+page.server.ts
index 88c5f2d..b43c97e 100644
--- a/src/routes/login/+page.server.ts
+++ b/src/routes/login/+page.server.ts
@@ -3,7 +3,9 @@ import { setSession, verifyPassword } from '$lib/server/auth';
import type { Actions, PageServerLoad } from './$types';
function safeNext(value: string | null): string {
- return value?.startsWith('/') && !value.startsWith('//') ? value : '/';
+ return value?.startsWith('/') && !value.startsWith('//')
+ ? value
+ : '/groceries';
}
export const load: PageServerLoad = ({ url }) => ({