We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 9a772f4 commit 09d4cccCopy full SHA for 09d4ccc
1 file changed
backend/open_webui/utils/terminals.py
@@ -6,12 +6,11 @@
6
def get_terminal_server_url(connection: dict) -> str:
7
"""Return the upstream base URL for a terminal connection.
8
9
- Only orchestrator connections with an explicit policy use the named-policy
10
- route. Direct Open Terminal connections and legacy unscoped orchestrator
11
- connections keep their existing root route.
+ An explicit policy uses the named-policy route. Connections without one
+ keep their existing root route.
12
"""
13
base_url = str(connection.get('url') or '').rstrip('/')
14
policy_id = str(connection.get('policy_id') or '').strip()
15
- if connection.get('server_type') == 'orchestrator' and policy_id:
+ if policy_id:
16
return f'{base_url}/p/{quote(policy_id, safe="")}'
17
return base_url
0 commit comments