Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 3 additions & 1 deletion src/modules/auth.ts
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,9 @@ export function createAuthModule(
return;
}
// If nextUrl is not provided, use the current URL
const redirectUrl = nextUrl || window.location.href;
const redirectUrl = nextUrl
? new URL(nextUrl, window.location.origin).toString()
: window.location.href;

// Build the login URL
const loginUrl = `${
Expand Down
Loading