From ea7e46a26054e1efac8e94f5a629d5b1e9652be3 Mon Sep 17 00:00:00 2001 From: isaacclad Date: Thu, 18 Jun 2026 13:09:24 +0000 Subject: [PATCH] Fix guest entry: correct marketing URL and stop auto silent SSO. Correct localhost marketing_url default and stop redirecting guests through /sso/connect on visit; SSO starts only via explicit sign-in. Co-authored-by: Cursor --- config/ladill.php | 2 +- routes/web.php | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/config/ladill.php b/config/ladill.php index 0a02861..26d7ca3 100644 --- a/config/ladill.php +++ b/config/ladill.php @@ -2,5 +2,5 @@ return [ 'product_slug' => 'hosting', - 'marketing_url' => env('LADILL_MARKETING_URL', 'https://localhost/products/hosting'), + 'marketing_url' => env('LADILL_MARKETING_URL', 'https://ladill.com/products/hosting'), ]; diff --git a/routes/web.php b/routes/web.php index d4077f5..580bde2 100644 --- a/routes/web.php +++ b/routes/web.php @@ -20,7 +20,7 @@ $serversApp = fn (string $path = ''): string => 'https://'.config('app.servers_d Route::get('/', fn () => auth()->check() ? redirect()->route('hosting.dashboard') - : redirect()->route('sso.connect'))->name('hosting.root'); + : 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');