How to go to the main site when logged in using the Genesis starter kit
Hi
With the Genesis starterkit comes the Dashboard, however, when a user is logged in, then the user cannot view the 'main' part of the website but is always redirected to the dashboard e.g. (I have Valet on mac)
After logging in, goto genesis.test and you are redirected to the genesis.test/dashboard
Also, when clicking the logo, I like to go to the main site, not the dashboard
Hey!
I believe that this is a standard behavior for many applications.
For Genesis specifically this can be managed via the RedirectToDashboard
middleware here:
You can remove that middleware from the main home page here:
You can modify the behavior as needed.
Hope that this helps!
- Bobby
I agree that redirect to dashboard after login is very normal.
I don't think it normal behaviour that the use cannot see the main site after being logged in :)
So right now, I would not be able to see devdojo.com, because I'm logged in... does not make sense to me :)
Thanks for the pointer to the middleware and the blade.
Kind regards Steen
















Hey!
You should be able to remove that behavior by removing the one line from the view file.
If you are to check this is the case for many websites including GitHub, Twitter and etc.
At the end of the day I guess that it is just a matter of personal preference 😄