From 9a92e637b921862b76bd40b46a8a95bca4709eb8 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Matilda=20Landstr=C3=B6m?= Date: Tue, 21 May 2024 12:33:06 +0200 Subject: [PATCH] fix: update comment --- 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 b7d80d95b..26a584e45 100644 --- a/app/[lang]/(live)/(protected)/logout/route.ts +++ b/app/[lang]/(live)/(protected)/logout/route.ts @@ -24,7 +24,7 @@ export async function GET(request: NextRequest) { request.nextUrl.searchParams.get("redirectTo") || "/" - // If above fails, always redirect to startpage + // Make relative URL to absolute URL if (redirectTo.startsWith("/")) { if (!env.PUBLIC_URL) { throw internalServerError("No value for env.PUBLIC_URL")