fix: switching null check

This commit is contained in:
Matilda Landström
2024-05-27 13:53:52 +02:00
parent 6e94d28073
commit 9c1a24835d

View File

@@ -46,7 +46,7 @@ export async function GET(
break
}
const redirectUrl = new URL(redirectUrlValue)
if (request.nextUrl.searchParams.get("currentweb") != null) {
if (request.nextUrl.searchParams.get("currentweb") == null) {
// Request coming from NEW web, redirect to current web logout
redirectTo = redirectUrl.toString()
} else {