Skip to content

Redirect: fix infinite redirect in 404 view #12237

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

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

stsewd
Copy link
Member

@stsewd stsewd commented Jun 5, 2025

When the redirect logic is run from the 404 handler, the request actually comes from the /_proxito_404_/path/to/file path, so we can't compare the path from the current request to check for infinite redirects, we already pass the proper path from the request or 404 in the path parameter.

@stsewd stsewd requested a review from a team as a code owner June 5, 2025 22:01
@stsewd stsewd requested a review from humitos June 5, 2025 22:01
@stsewd stsewd moved this to Needs review in 📍Roadmap Jun 9, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Status: Needs review
Development

Successfully merging this pull request may close these issues.

2 participants