Skip to content

Commit

Permalink
Only redirect if there are no errors in the session
Browse files Browse the repository at this point in the history
  • Loading branch information
reinink authored Sep 20, 2022
1 parent c98dbd0 commit b0b2b11
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/RememberQueryStrings.php
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ protected function remembered($next, $request)
{
$remembered = array_filter($request->session()->get('remember_query_strings.'.$request->route()->getName()) ?? []);

if ($remembered) {
if ($remembered && ! $request->session()->has('errors')) {
$request->session()->reflash();

return redirect(url($request->path()).'?'.http_build_query($remembered));
Expand Down

0 comments on commit b0b2b11

Please sign in to comment.