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,
|
||||
): 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();
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user