-
Notifications
You must be signed in to change notification settings - Fork 11k
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
return back() is broken in laravel 10.3 version #46388
Comments
Bug is due to this PR: My guess is because it's looking at "url" and not "route" it can't distinguish between the same PATH with a different METHOD. I am getting the same error, when a POST route is trying to redirect back to the GET route with the same path. Would probably recommend a revert of the PR at this time. |
https://github.com/aknEvrnky/laravel-10-3-is-broken.git |
looking into that |
nevermind, I just got what is the problem now. working in a fix |
Fix sent. Fingers crossed =) |
10.3.1 should revert the faulty pr. |
You wouldn’t believe how long I spent battling this, thinking I was going crazy… |
Sorry to hear that @martinbean 😢 |
Description:
In my controllers, return back() redirects to homepage instead of previous page. This bug only produced on server side for laravel 10.3 version. When I downgrade to laravel 10.2, there are no any mis redirect.
Steps To Reproduce:
I change laravel/framework version to 10.2 from composer.json. There are no anything unusual.
Then, I change the version to 10.3 or ^10.0.
return back() function redirects to homepage.
But It only happens in my production server which is CentOS 7 with plesk.
The text was updated successfully, but these errors were encountered: