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

Why don't allow url exist in this site for redirect? #15

Open
reloadsweety opened this issue Nov 5, 2019 · 0 comments
Open

Why don't allow url exist in this site for redirect? #15

reloadsweety opened this issue Nov 5, 2019 · 0 comments

Comments

@reloadsweety
Copy link

this code line in regex_redirects.middleware.RedirectFallbackMiddleware line 39

  if response.status_code != 404:
        return response  # No need to check for a redirect for non-404 responses

Can we open pr and have setting to allow redirect exiting url as below? Thought?

if !settings.ALLOW_REDIRECT_EXISTING_URL and response.status_code != 404:
      return response
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant