From 3cfa53d81d67414353096edb3868229a652be8dd Mon Sep 17 00:00:00 2001 From: isaacclad Date: Wed, 1 Jul 2026 21:46:03 +0000 Subject: [PATCH] Skip identity redirect when Care session already exists on SSO connect. Honors the intended URL for signed-in users instead of calling post-auth-redirect, which returned /sso/connect again. Co-authored-by: Cursor --- app/Http/Controllers/Auth/SsoLoginController.php | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/app/Http/Controllers/Auth/SsoLoginController.php b/app/Http/Controllers/Auth/SsoLoginController.php index 6e182e2..1aad786 100644 --- a/app/Http/Controllers/Auth/SsoLoginController.php +++ b/app/Http/Controllers/Auth/SsoLoginController.php @@ -33,9 +33,7 @@ class SsoLoginController extends Controller $intended = (string) $request->query('redirect', route('care.dashboard')); if (Auth::check()) { - $redirect = $this->resolveLanding($identity, $request->user(), $intended); - - return $this->safeRedirect($redirect, route('care.dashboard')); + return $this->safeRedirect($intended, route('care.dashboard')); } if (! $request->boolean('fallback')) {