Merged in fix/SW-3529-wl-site-logout-does-not-reload- (pull request #2947)

Fix/SW-3529 wl site logout does not reload
Approved-by: Anton Gunnarsson
This commit is contained in:
Hrishikesh Vaipurkar
2025-10-14 09:19:43 +00:00
parent bdc44898d9
commit 36f44d1c0c
3 changed files with 20 additions and 11 deletions

View File

@@ -1,4 +1,4 @@
import { type NextRequest } from "next/server"
import { type NextRequest, NextResponse } from "next/server"
import { getPublicURL } from "@/server/utils"
@@ -13,5 +13,7 @@ export async function GET(
const publicURL = getPublicURL(request)
const redirectTo: string = publicURL
await signOut({ redirectTo, redirect: true })
await signOut({ redirectTo, redirect: false })
return NextResponse.redirect(redirectTo)
}