From 849503a18f529385d6e8d79e2f9ba058a45364de Mon Sep 17 00:00:00 2001 From: Lakshya Thakur Date: Sun, 30 Jan 2022 11:33:22 +0530 Subject: [PATCH] fix: Change `url` to `nextUrl` inside delete-query-params-in-middlewares md --- errors/deleting-query-params-in-middlewares.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/errors/deleting-query-params-in-middlewares.md b/errors/deleting-query-params-in-middlewares.md index 676c5d903a3de..847efbb0bddc4 100644 --- a/errors/deleting-query-params-in-middlewares.md +++ b/errors/deleting-query-params-in-middlewares.md @@ -28,7 +28,7 @@ import { NextResponse } from 'next/server' export default function middleware(request: NextRequest) { const nextUrl = request.nextUrl nextUrl.pathname = '/dest' - return NextResponse.rewrite(url) + return NextResponse.rewrite(nextUrl) } ```