From 693ec8cfea0579bc650b010cd9b236774d9ca84c Mon Sep 17 00:00:00 2001 From: Picasso Houessou Date: Mon, 2 Jun 2025 18:29:51 +0200 Subject: [PATCH] Redirect the user to the URL they were attempting to access before registering. --- app/Http/Controllers/Auth/RegisteredUserController.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/Http/Controllers/Auth/RegisteredUserController.php b/app/Http/Controllers/Auth/RegisteredUserController.php index db903e8ee..08caeef18 100644 --- a/app/Http/Controllers/Auth/RegisteredUserController.php +++ b/app/Http/Controllers/Auth/RegisteredUserController.php @@ -46,6 +46,6 @@ public function store(Request $request): RedirectResponse Auth::login($user); - return to_route('dashboard'); + return redirect()->intended(route('dashboard', absolute: false)); } }