Skip to content

Commit

Permalink
Update SpladeCore.php
Browse files Browse the repository at this point in the history
  • Loading branch information
pascalbaljet committed Mar 17, 2024
1 parent 4b8a223 commit 829f4be
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/SpladeCore.php
Original file line number Diff line number Diff line change
Expand Up @@ -332,7 +332,7 @@ public static function exceptionHandler(Handler $exceptionHandler, ?callable $re
if ($e instanceof AuthenticationException) {
// Still use request()->guest() so the "indented" URL is preserved.
return Splade::redirectAway(
redirect()->guest($e->redirectTo() ?? route('login'))->getTargetUrl()
redirect()->guest($e->redirectTo($request) ?? route('login'))->getTargetUrl()
);
}

Expand Down

0 comments on commit 829f4be

Please sign in to comment.