-
Notifications
You must be signed in to change notification settings - Fork 11.1k
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
Redirect back gives an infinite loop #26055
Comments
Well, yes, if visiting I suggest you either return a 403 (this is the default behavior) or return a redirect to some fixed URL that won't generate another redirect. |
@AegirLeet The problem here, is that when this problem happens, it's hard to find why you have an infinite redirect loop. Since |
This has already been fixed in the latest |
I am sorry to say, but in my 5.7 as soon as it redirects it says: |
@LadyDeathKZN - that is a local error for you. It clear says the |
Description:
When the back URL is the same URL that throws the error, we get a redirect loop.
Steps To Reproduce:
posts/create
routeCreateFormRequest
class to validate the request, and setauthorize
methode to returnfalse
.Handler
weredirect()->back()->withErrors("Authorization problem")
posts/create
The text was updated successfully, but these errors were encountered: