We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 5a2d4a2 commit f5719feCopy full SHA for f5719fe
1 file changed
client/src/middleware.ts
@@ -25,7 +25,8 @@ async function getUserProfile(request: NextRequest): Promise<User | null> {
25
}
26
27
function redirectUnauthenticated(request: NextRequest) {
28
- const loginUrl = new URL(`/auth/keycloak/login?destination=${request.url}`, siteConfig.apiUrl)
+ const loginUrl = new URL("/auth/keycloak/login", siteConfig.apiUrl)
29
+ loginUrl.searchParams.set("destination", request.url)
30
return NextResponse.redirect(loginUrl)
31
32
0 commit comments