Skip to content

Commit bbfc8f2

Browse files
Redirect the user to the URL they were attempting to access before registering. (#121)
1 parent a112a23 commit bbfc8f2

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

app/Http/Controllers/Auth/RegisteredUserController.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,6 +46,6 @@ public function store(Request $request): RedirectResponse
4646

4747
Auth::login($user);
4848

49-
return to_route('dashboard');
49+
return redirect()->intended(route('dashboard', absolute: false));
5050
}
5151
}

0 commit comments

Comments
 (0)