From 829f4be68b6404bc5b809ea5e3d8d839071abfce Mon Sep 17 00:00:00 2001 From: Pascal Baljet Date: Sun, 17 Mar 2024 23:25:01 +0100 Subject: [PATCH] Update SpladeCore.php --- src/SpladeCore.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/SpladeCore.php b/src/SpladeCore.php index e316e329..e949d907 100755 --- a/src/SpladeCore.php +++ b/src/SpladeCore.php @@ -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() ); }