Skip to content
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

Mention HTTP 303 See Other in redirects section #35997

Merged
merged 3 commits into from Apr 8, 2022
Merged

Mention HTTP 303 See Other in redirects section #35997

merged 3 commits into from Apr 8, 2022

Conversation

bjorndown
Copy link
Contributor

Migrating from express to nextjs API routes broke one of our APIs because of how redirect works in nextjs vs. how it works in express. We need to redirect the user to a confirmation page via GET after making a POST request, which is not possible with redirect.

HTTP 303 seems to be the way to go in that case and I think it should be mentioned here.

Documentation / Examples

  • Make sure the linting passes by running yarn lint

Migrating from express to nextjs API routes broke one of our APIs because of how `redirect` works in nextjs vs. how it works in express. We need to redirect the user to a confirmation page via GET after making a POST request, which is not possible with `redirect`.

HTTP 303 seems to be the way to go in that case and I think it should be mentioned here.
Co-authored-by: Steven <steven@ceriously.com>
@kodiakhq kodiakhq bot merged commit 9c12d85 into vercel:canary Apr 8, 2022
colinhacks pushed a commit to colinhacks/next.js that referenced this pull request Apr 14, 2022
Migrating from express to nextjs API routes broke one of our APIs because of how `redirect` works in nextjs vs. how it works in express. We need to redirect the user to a confirmation page via GET after making a POST request, which is not possible with `redirect`.

HTTP 303 seems to be the way to go in that case and I think it should be mentioned here.


## Documentation / Examples

- [ ] Make sure the linting passes by running `yarn lint`
@github-actions github-actions bot locked as resolved and limited conversation to collaborators May 9, 2022
@bjorndown bjorndown deleted the patch-2 branch November 5, 2022 13:23
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants