From b5bc4a74bf2053a98e7f6014c999259d8cd9fba5 Mon Sep 17 00:00:00 2001 From: Raul Lugo Date: Wed, 28 Jan 2026 04:39:22 +0100 Subject: [PATCH] fix: hardcoded / in logout route and not default to user injected config --- src/routes/logout.ts | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/routes/logout.ts b/src/routes/logout.ts index 02c2f05..3c9c6cc 100644 --- a/src/routes/logout.ts +++ b/src/routes/logout.ts @@ -17,8 +17,7 @@ function inferPostLogoutRedirectUri( reqUrl: URL, ): string { if ("absolute" in options.redirectUri) return options.redirectUri.absolute; - // Default to site root - const u = new URL("/", reqUrl); + const u = new URL(options.routes.callback, reqUrl); return u.toString(); }