Skip to content

Commit

Permalink
Fix cache route
Browse files Browse the repository at this point in the history
  • Loading branch information
danieltott committed Oct 8, 2024
1 parent e43ef16 commit 0eb5833
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/app/_cache/route.ts → src/app/%5Fcache/route.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit 0eb5833

Please sign in to comment.