From 9c1a24835df3a185dba8d2ae994941b731fc0473 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Matilda=20Landstr=C3=B6m?= Date: Mon, 27 May 2024 13:53:52 +0200 Subject: [PATCH] fix: switching null check --- app/[lang]/(live)/(protected)/logout/route.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/[lang]/(live)/(protected)/logout/route.ts b/app/[lang]/(live)/(protected)/logout/route.ts index 40a45a91b..00520e1d6 100644 --- a/app/[lang]/(live)/(protected)/logout/route.ts +++ b/app/[lang]/(live)/(protected)/logout/route.ts @@ -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 {