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 {