diff --git a/app/main.py b/app/main.py index b3440de..2060362 100644 --- a/app/main.py +++ b/app/main.py @@ -2419,7 +2419,13 @@ def session_status(session_id: str, user: User = Depends(require_user), db: Sess universal_pool_idx = int(sess.container_id.split(":", 1)[1]) except Exception: universal_pool_idx = None - route_path = f"/svc/{service.slug}/" if pooled_web and service else f"/s/{session_id}/" + pooled_rdp = bool(sess.container_id and sess.container_id.startswith("POOL:") and service and service.type == ServiceType.RDP) + if pooled_web and service: + route_path = f"/svc/{service.slug}/" + elif pooled_rdp and service: + route_path = f"/svc/{service.slug}/" + else: + route_path = f"/s/{session_id}/" if web_pool_idx is not None: route_path = f"/w/{web_pool_idx}/" if universal_pool_idx is not None: @@ -2436,7 +2442,7 @@ def session_status(session_id: str, user: User = Depends(require_user), db: Sess "message": "Готово, открываем..." if ready else "Запуск сессии...", "steps": steps, } - if pooled_web: + if pooled_web or pooled_rdp: payload["redirect_url"] = f"/s/{session_id}/view" if web_pool_idx is not None: payload["redirect_url"] = f"/s/{session_id}/view" diff --git a/app/templates/dashboard.html b/app/templates/dashboard.html index fe6c029..a8587e4 100644 --- a/app/templates/dashboard.html +++ b/app/templates/dashboard.html @@ -103,6 +103,18 @@ + +