Replies: 1 comment 2 replies
-
Interesting, however 301 & 302 mean the HTTP method can change, while 307 & 308 do not. More on the HTTP redirect specs; https://stackoverflow.com/questions/42136829/whats-the-difference-between-http-301-and-308-status-codes In terms of SEO, this should not matter. (article) |
Beta Was this translation helpful? Give feedback.
2 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
Goals
Background
During migration from page to app router, we faced an issue that we can not send 301 redirect as permanentRedirect sends a 308 status code by default.
Sending 301 instead of 308 is a hard requirement from our SEO team.
We do now patching the package to not block the migration but that's mess.
Would be just great to be able to do it. Implementation according to source code shall also be not complicated.
Proposal
User shall be able to specify the status code he prefers.
By default 308 is used, 301 will be used only if it is directly specified.
Change does not break signature of permanentRedirect function.
New argument is provided as object to allow future extensions.
We could contribute.
example usage:
Beta Was this translation helpful? Give feedback.
All reactions