Skip to content

Commit

Permalink
make it a rewritre
Browse files Browse the repository at this point in the history
  • Loading branch information
Guysnacho committed Jun 1, 2024
1 parent 85ed78b commit 979dfd1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/middleware.ts
Original file line number Diff line number Diff line change
Expand Up @@ -112,7 +112,7 @@ export async function middleware(request: NextRequest) {

console.debug(originalParams.toString())
console.debug(transformParams.toString())
return NextResponse.redirect(
return NextResponse.rewrite(
transformParams.size > 0
? originalParams.url + transformParams.toString()
: originalParams.url,
Expand Down

0 comments on commit 979dfd1

Please sign in to comment.