We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
permanentRedirect
We already support redirect for 307 status codes, but Next.js has added permanentRedirect for 303/308 status codes in the meantime.
redirect
Akin to redirect, the factory functions for creating navigation APIs should return a permanentRedirect function (based on the one from Next.js).
Wrap the function from Next.js in userland.
Relevant tests:
createLocalizedPathnamesNavigation.test.tsx
createSharedPathnamesNavigation.test.tsx
Relevant source files to adapt:
react-server/createLocalizedPathnamesNavigation.tsx
react-client/createLocalizedPathnamesNavigation.tsx
react-server/createSharedPathnamesNavigation.tsx
react-client/createSharedPathnamesNavigation.tsx
The text was updated successfully, but these errors were encountered:
feat: Add support for permanentRedirectin navigation APIs (#850 by @…
6508ddc
…polvallverdu) Fixes #715 --------- Co-authored-by: Jan Amann <jan@amann.me>
Successfully merging a pull request may close this issue.
Is your feature request related to a problem? Please describe.
We already support
redirect
for 307 status codes, but Next.js has addedpermanentRedirect
for 303/308 status codes in the meantime.Describe the solution you'd like
Akin to
redirect
, the factory functions for creating navigation APIs should return apermanentRedirect
function (based on the one from Next.js).Describe alternatives you've considered
Wrap the function from Next.js in userland.
Context
Relevant tests:
createLocalizedPathnamesNavigation.test.tsx
createSharedPathnamesNavigation.test.tsx
Relevant source files to adapt:
react-server/createLocalizedPathnamesNavigation.tsx
react-client/createLocalizedPathnamesNavigation.tsx
react-server/createSharedPathnamesNavigation.tsx
react-client/createSharedPathnamesNavigation.tsx
The text was updated successfully, but these errors were encountered: