From 9aed0937ab8617991bd8aa8e0301617f25fc2a90 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?C=C3=BCneyt=20=C5=9Eent=C3=BCrk?= Date: Thu, 26 Feb 2026 17:49:00 +0000 Subject: [PATCH] Enhancement unauthenticated user url intended --- app/Exceptions/Handler.php | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/app/Exceptions/Handler.php b/app/Exceptions/Handler.php index 861ebaa23..15dbbd427 100644 --- a/app/Exceptions/Handler.php +++ b/app/Exceptions/Handler.php @@ -116,9 +116,9 @@ class Handler extends ExceptionHandler */ protected function unauthenticated($request, AuthenticationException $exception) { - // Store the current url in the session - if ($request->url() !== config('app.url')) { - session(['url.intended' => $request->url()]); + // Store the current url in the session (fullUrl includes query string) + if ($request->fullUrl() !== config('app.url')) { + session(['url.intended' => $request->fullUrl()]); } return $request->expectsJson()