PLATFORM
  • Tails

    Create websites with TailwindCSS

  • Blocks

    Design blocks for your website

  • Wave

    Start building the next great SAAS

  • Pines

    Alpine & Tailwind UI Library

  • Auth

    Plug'n Play Authentication for Laravel

  • Designer comingsoon

    Create website designs with AI

  • DevBlog comingsoon

    Blog platform for developers

  • Static

    Build a simple static website

  • SaaS Adventure

    21-day program to build a SAAS

Question By

Unsolved

How to go to the main site when logged in using the Genesis starter kit

steen

Jul 3rd, 2024 08:27 PM

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

bobbyiliev

Jul 4th, 2024 12:28 AM

Hey!

I believe that this is a standard behavior for many applications.

For Genesis specifically this can be managed via the RedirectToDashboard middleware here:

RedirectToDashboard.php

You can remove that middleware from the main home page here:

index.blade.php#L6

You can modify the behavior as needed.

Hope that this helps!

- Bobby

steen

Jul 4th, 2024 12:42 AM

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

Report
1
bobbyiliev

Jul 4th, 2024 01:41 AM

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 😄