Skip to content

Commit

Permalink
fix: Change url to nextUrl inside delete-query-params-in-middlewa…
Browse files Browse the repository at this point in the history
…res.md (#33796)

Co-authored-by: JJ Kasper <[email protected]>
  • Loading branch information
lakbychance and ijjk authored Feb 6, 2022
1 parent 0fd2f3b commit 8039c6b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion errors/deleting-query-params-in-middlewares.md
Original file line number Diff line number Diff line change
Expand Up @@ -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)
}
```

Expand Down

0 comments on commit 8039c6b

Please sign in to comment.