Files
openclaw/ui
Ben Gitter 3ed11f9651 fix(control-ui): include basePath in default WebSocket URL
When the Control UI is served behind a reverse proxy at a sub-path
(e.g., /claw/bot-name/), the default gatewayUrl was computed as
wss://{host} without including the basePath. This caused WebSocket
connections to go to the origin root, which fails when a path-based
reverse proxy expects connections at the sub-path.

The fix reuses the existing basePath detection logic
(inferBasePathFromPathname) to include the sub-path in the default
WebSocket URL, e.g., wss://host:8443/claw/bot-name.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
2026-03-01 20:43:06 +01:00
..