From 0bdc9513b05194ec9b45f9409a3e0eb15aa09f55 Mon Sep 17 00:00:00 2001 From: isaacclad Date: Thu, 18 Jun 2026 13:47:30 +0000 Subject: [PATCH] Restore silent SSO on app entry for users switching between apps. Guests without a local session try prompt=none SSO first; marketing pages are only for visitors with no platform session (localhost fix retained). Co-authored-by: Cursor --- routes/web.php | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/routes/web.php b/routes/web.php index 580bde2..cf3233c 100644 --- a/routes/web.php +++ b/routes/web.php @@ -14,13 +14,14 @@ use App\Http\Controllers\Hosting\TeamController; use App\Http\Controllers\NotificationController; use Illuminate\Support\Facades\Route; +Route::get('/', fn () => auth()->check() + ? redirect()->route('hosting.dashboard') + : redirect()->route('sso.connect'))->name('hosting.root'); + $serversApp = fn (string $path = ''): string => 'https://'.config('app.servers_domain').($path !== '' ? '/'.ltrim($path, '/') : ''); // Ladill Hosting — authenticated app for buying + managing hosting (hosting.ladill.com). -Route::get('/', fn () => auth()->check() - ? redirect()->route('hosting.dashboard') - : redirect()->away((string) config('ladill.marketing_url')))->name('hosting.root'); Route::get('/login', [SsoLoginController::class, 'connect'])->name('login'); Route::get('/sso/connect', [SsoLoginController::class, 'connect'])->name('sso.connect');