From 113415ce357a9cea1759d0452ebae6352f8fe36b Mon Sep 17 00:00:00 2001 From: Martin Kagamino Lehoux Date: Mon, 7 Sep 2026 10:55:06 +0200 Subject: 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. --- src/routes/login/+page.server.ts | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'src/routes/login/+page.server.ts') 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 }) => ({ -- cgit v1.3