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]: Clarify redirects in next.config to negate potential infinite redirects #74019

Merged
merged 1 commit into from
Dec 17, 2024

Conversation

molebox
Copy link
Collaborator

@molebox molebox commented Dec 17, 2024

This PR updates the next.config API ref docs redirects page to add a note about using a forward slash before a colon in the source + destination paths for redirects. Without the forward slash, the path will be treated as a literal string, and the redirect will not work and potentially cause infinite redirects.

@ijjk ijjk added created-by: Next.js DevEx team Documentation Related to Next.js' official documentation. labels Dec 17, 2024
@molebox molebox requested a review from a team December 17, 2024 12:24
@leerob leerob merged commit 2b61510 into canary Dec 17, 2024
51 checks passed
@leerob leerob deleted the note-infinite-redirects branch December 17, 2024 14:53
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
created-by: Next.js DevEx team Documentation Related to Next.js' official documentation.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants