DEV Community

Discussion on: Redirect after login in Laravel.

Collapse
 
sicklounet profile image
Brenier Arnaud

Hello Ariel.

Thanks for the post.

I noticed that the login page needs to be the entry point for the user.
If i'm not logged and use the root url "mydomain.app", I'm redirected to "mydomain.app/login", then I log in, and since my first intended URL was the root one, the redirection is override by the root one.

I found this when looking at the "intended()" function in the sendLoginResponse() one.