diff --git a/src/routes/(app)/auth/v1/oidc/authorize/+server.ts b/src/routes/(app)/auth/v1/oidc/authorize/+server.ts index e915f323..3afe2213 100644 --- a/src/routes/(app)/auth/v1/oidc/authorize/+server.ts +++ b/src/routes/(app)/auth/v1/oidc/authorize/+server.ts @@ -1,8 +1,8 @@ import { proxy_to_rauthy } from '$lib/rauthy/server'; import { redirect, type RequestHandler } from '@sveltejs/kit'; -export const GET: RequestHandler = async () => { - return redirect(303, '/login'); +export const GET: RequestHandler = async ({ url }) => { + return redirect(303, `/login${url.search}${url.hash}`); }; export const fallback = proxy_to_rauthy;