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

docs: fix skipTrailingSlashRedirect middleware example #65220

Merged

Conversation

ztanner
Copy link
Member

@ztanner ztanner commented Apr 30, 2024

The example here only updates the pathname, but the redirect path is determined by taking the req.nextUrl object and stringifying it, which means it would return the wrong redirect location.

Closes NEXT-3260

@ijjk ijjk added created-by: Next.js team PRs by the Next.js team. Documentation Related to Next.js' official documentation. labels Apr 30, 2024
Copy link
Member Author

ztanner commented Apr 30, 2024

This stack of pull requests is managed by Graphite. Learn more about stacking.

Join @ztanner and the rest of your teammates on Graphite Graphite

@ztanner ztanner marked this pull request as ready for review April 30, 2024 22:46
@ztanner ztanner requested review from a team as code owners April 30, 2024 22:46
@ztanner ztanner requested review from manovotny and delbaoliveira and removed request for a team April 30, 2024 22:46
@ztanner ztanner merged commit b1ce1b2 into canary Apr 30, 2024
35 checks passed
@ztanner ztanner deleted the 04-30-docs_fix_skipTrailingSlashRedirect_middleware_example branch April 30, 2024 22:51
@github-actions github-actions bot locked as resolved and limited conversation to collaborators May 15, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
created-by: Next.js team PRs by the Next.js team. Documentation Related to Next.js' official documentation. locked
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants