fix: hardcoded / in logout route and not default to user injected config
This commit is contained in:
@@ -17,8 +17,7 @@ function inferPostLogoutRedirectUri(
|
|||||||
reqUrl: URL,
|
reqUrl: URL,
|
||||||
): string {
|
): string {
|
||||||
if ("absolute" in options.redirectUri) return options.redirectUri.absolute;
|
if ("absolute" in options.redirectUri) return options.redirectUri.absolute;
|
||||||
// Default to site root
|
const u = new URL(options.routes.callback, reqUrl);
|
||||||
const u = new URL("/", reqUrl);
|
|
||||||
return u.toString();
|
return u.toString();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user