Closed sneadthaman closed 3 years ago
Hi @sneadthaman - I'm not seeing links to login - am I missing something? : )
If you run the app locally, the login screen appears automatically for non-logged in users
use pw: asdfasdf
Ah ok, I was looking at your production site. I will clone locally to test now.
The /{slug}
route is ambiguous with the /projects
route.
So what is happening when your visit /projects
is it's triggering DashboardController::class, 'show'
which upon not finding a customer slug, is redirecting back to /
:
To address this, rearrange your routes so /projects
is first and takes precedence over /{slug}
.
Working!! Thank you so much
Repository URL https://github.com/sneadthaman/e15/tree/main/p3
Production URL
Describe the problem Some of the routes are working as expected ('/' , '/{slug}') but other routes in the same auth group are being redirected back to '/'. I've looked for clues on this Stack forum (https://stackoverflow.com/questions/35020477/laravel-unexpected-redirects-302#45356645) but can't figure this out.
To Reproduce Steps to reproduce the behavior:
Additional context I have 3 projects seeded in the db so there is definitely data that the route could use