[RedirectClass] toReferrer |
In my project is is likely users will open multiple tabs but continue navigating on the original tab. In this case, using redirect()->back() produces unexpected behavior. Example
Code: redirect()->back() However, would there be enough of a use case to add a Code: redirect()->toReferrer() function to cover the case I just described? Of course, this would be not much more than a convenience function as the functionality can already be achieved with other functions from the framework. I would be happy to open a PR.
HTTP_REFERER is not reliable.
So if you want to use it, redirect()->to($referer) by yourself.
There is no need to use back() or referer in the first place.
You can just specify the URI in the controller. |
Welcome Guest, Not a member yet? Register Sign In |