fix: hardcoded / in logout route and not default to user injected config

This commit is contained in:
Raul Lugo
2026-01-28 04:39:22 +01:00
parent 5e4cd49d0a
commit b5bc4a74bf

View File

@@ -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();
}