Unverified Commit 5d972b59 authored by マルコメ's avatar マルコメ Committed by GitHub

docs: fix incorrect link in url-deprecated.mdx (#71787)

## Summary
Delete an incorrect link and update a right link.

### Improving Documentation

- [x] Run `pnpm prettier-fix` to fix formatting issues before opening
the PR.
- [x] Read the Docs Contribution Guide to ensure your contribution
follows the docs guidelines:
https://nextjs.org/docs/community/contribution-guide

---------
Co-authored-by: 's avatarJJ Kasper <jj@jjsweb.site>
parent d9041fde
......@@ -12,8 +12,6 @@ The reason this is going away is that we want to make things very predictable an
## Possible Ways to Fix It
/docs/advanced-features/codemods#url-to-withrouter
Since Next 5 we provide a way to explicitly inject the Next.js router object into pages and all their descending components.
The `router` property that is injected will hold the same values as `url`, like `pathname`, `asPath`, and `query`.
......@@ -35,4 +33,4 @@ export default withRouter(Page)
We provide a codemod (a code to code transformation) to automatically change the `url` property usages to `withRouter`.
You can find this codemod and instructions on how to run it here: /docs/advanced-features/codemods#url-to-withrouter
You can find this codemod and instructions on how to run it here: [Use `withRouter`](/docs/pages/building-your-application/upgrading/codemods#url-to-withrouter)
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment