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:
@@ -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)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user