From 1e319fb7564f7fd39d126a02976fe5d03ec3a8e5 Mon Sep 17 00:00:00 2001 From: Michael Zetterberg Date: Fri, 31 May 2024 08:41:34 +0200 Subject: [PATCH] fix: encode redirect url --- 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 d29ac6571..38b98361a 100644 --- a/app/[lang]/(live)/(protected)/logout/route.ts +++ b/app/[lang]/(live)/(protected)/logout/route.ts @@ -75,7 +75,7 @@ export async function GET( console.log({ logout_signOutURL: signOutURL }) // Redirect to Curity logout - const curityLogoutUrl = `${env.CURITY_ISSUER_USER}/authn/authenticate/logout?redirect_uri=${redirectTo}` + const curityLogoutUrl = `${env.CURITY_ISSUER_USER}/authn/authenticate/logout?redirect_uri=${encodeURIComponent(redirectTo)}` console.log({ logout_redirectTo: curityLogoutUrl })