Fix redirect loop on session expiry and add missing nav links
- Add redirectGuestsTo in bootstrap/app.php so unauthenticated users always redirect to the full account login URL instead of a relative /login that would 404 on the admin subdomain or loop - Create HandleInertiaRequests middleware to share auth.user, flash messages, and domain config to all Vue pages (was entirely missing) - Add Profile nav link in AppLayout, "Customer View" link in AdminLayout - Point logout to account subdomain where Fortify routes live - Link AuthLayout logo back to marketing site - Fix Marketing/Home links to use full account subdomain URLs - Update RoleBasedAccessTest to match new redirect URL Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This commit is contained in:
@@ -12,7 +12,7 @@ beforeEach(function (): void {
|
||||
|
||||
it('redirects unauthenticated users to login', function (): void {
|
||||
$this->get($this->accountUrl.'/dashboard')
|
||||
->assertRedirect($this->accountUrl.'/login');
|
||||
->assertRedirect('https://'.config('app.domains.account').'/login');
|
||||
});
|
||||
|
||||
it('identifies admin users correctly', function (): void {
|
||||
|
||||
Reference in New Issue
Block a user