-
Notifications
You must be signed in to change notification settings - Fork 27.8k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Docs: i18n doc needs to be updated for to use with url absolute & nextUrl clone #35273
Comments
The docs still need to mention |
## Bug fixes #35273 - [x] Related issues linked using `fixes #number` - [ ] Integration tests added - [ ] Errors have helpful link attached, see `contributing.md` ## Documentation / Examples - [ ] Make sure the linting passes by running `yarn lint`
## Bug fixes vercel#35273 - [x] Related issues linked using `fixes #number` - [ ] Integration tests added - [ ] Errors have helpful link attached, see `contributing.md` ## Documentation / Examples - [ ] Make sure the linting passes by running `yarn lint`
This closed issue has been automatically locked because it had no new activity for a month. If you are running into a similar issue, please create a new issue with the steps to reproduce. Thank you. |
## Bug fixes vercel/next.js#35273 - [x] Related issues linked using `fixes #number` - [ ] Integration tests added - [ ] Errors have helpful link attached, see `contributing.md` ## Documentation / Examples - [ ] Make sure the linting passes by running `yarn lint`
What is the improvement or update you wish to see?
i18n: docs example is deprecated:
at _middleware: https://nextjs.org/docs/advanced-features/i18n-routing#prefixing-the-default-locale
Now with 12.1, nextjs suggest to use clone() of nextUrl and replace relative URLs by absolute.
"URLs is malformed. Please use only absolute URLs"
https://nextjs.org/docs/messages/middleware-relative-urls
Is there any context that might help us understand?
Can't use Nextjs example code at docs with url relatives:
I think to use clone will help:
Does the docs page already exist? Please link to it.
https://nextjs.org/docs/advanced-features/i18n-routing#prefixing-the-default-locale
The text was updated successfully, but these errors were encountered: