From 0eb58333236b609fbfec6a3426181c7e5b689e56 Mon Sep 17 00:00:00 2001 From: Dan Ott Date: Tue, 8 Oct 2024 15:08:04 -0400 Subject: [PATCH] Fix cache route --- src/app/{_cache => %5Fcache}/route.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) rename src/app/{_cache => %5Fcache}/route.ts (90%) diff --git a/src/app/_cache/route.ts b/src/app/%5Fcache/route.ts similarity index 90% rename from src/app/_cache/route.ts rename to src/app/%5Fcache/route.ts index 4f87ca04..a73440d0 100644 --- a/src/app/_cache/route.ts +++ b/src/app/%5Fcache/route.ts @@ -4,7 +4,7 @@ import { redirect } from 'next/navigation'; export async function GET(request: NextRequest) { const searchParams = request.nextUrl.searchParams; - const queryparam = searchParams.get('query'); + const queryparam = searchParams.get('path'); let path = typeof queryparam === 'string' ? queryparam : '/'; if (!path.startsWith('/')) { path = '/' + path;