Skip identity redirect when Care session already exists on SSO connect.
Deploy Ladill Care / deploy (push) Successful in 42s

Honors the intended URL for signed-in users instead of calling post-auth-redirect, which returned /sso/connect again.

Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
isaacclad
2026-07-01 21:46:03 +00:00
co-authored by Cursor
parent 8ae599dc65
commit 3cfa53d81d
@@ -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')) {