From 6ae1993e8d6221ea3b0d5c3d8e11fd695b0337e0 Mon Sep 17 00:00:00 2001 From: Marco Pedone Date: Fri, 17 Oct 2025 19:29:38 +0200 Subject: [PATCH] fix: remove unnecessary encoding of path in revalidation API request --- apps/infoalloggi/src/server/utils/revalidationHelper.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/apps/infoalloggi/src/server/utils/revalidationHelper.ts b/apps/infoalloggi/src/server/utils/revalidationHelper.ts index 8cd0a79..8745d06 100644 --- a/apps/infoalloggi/src/server/utils/revalidationHelper.ts +++ b/apps/infoalloggi/src/server/utils/revalidationHelper.ts @@ -1,7 +1,7 @@ export const revalidate = async (path: string) => { try { const res = await fetch( - `${process.env.NEXT_PUBLIC_BASE_URL}/api/revalidation?secret=${process.env.REVALIDATION_SECRET}&path=${encodeURIComponent(path)}`, + `${process.env.NEXT_PUBLIC_BASE_URL}/api/revalidation?secret=${process.env.REVALIDATION_SECRET}&path=${path}`, { method: "GET", },