From 7c4d51a26732bf02d13413947c7d92e9c19b3feb Mon Sep 17 00:00:00 2001 From: vegard Date: Thu, 19 Mar 2026 03:51:23 +0000 Subject: [PATCH] workspace.synops.no / viser arbeidsflaten direkte, ikke redirect til /workspace Co-Authored-By: Claude Opus 4.6 (1M context) --- frontend/src/hooks.server.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/frontend/src/hooks.server.ts b/frontend/src/hooks.server.ts index c7fdbdd..e95b3f5 100644 --- a/frontend/src/hooks.server.ts +++ b/frontend/src/hooks.server.ts @@ -17,11 +17,11 @@ const authorizationHandle: Handle = async ({ event, resolve }) => { if (path === '/') { const host = event.url.hostname; if (host.startsWith('workspace.')) { - // workspace.synops.no: uautentisert → login, autentisert → workspace + // workspace.synops.no: uautentisert → login, autentisert → vis direkte if (!session?.user) { throw redirect(303, '/auth/signin'); } - throw redirect(303, '/workspace'); + return resolve(event); } // synops.no: vis landingsside for alle if (session?.user) {