Skip to content

Fix: preserve browserURL path prefixes when connecting (#15435) - #3601

Merged
kblok merged 3 commits into
masterfrom
implement-upstream-change-15435
Oct 9, 2026
Merged

kblok merged 3 commits into
masterfrom
implement-upstream-change-15435

Conversation

@kblok

@kblok kblok commented Oct 8, 2026

Copy link
Copy Markdown
Member

Connecting with a `browserURL` behind a reverse proxy or tunnel lost the path prefix. The endpoint was resolved as an absolute path, so `/t/session/` became `/json/version` and the request missed the proxy route. Now `/json/version` is appended to the existing path, and the query string is kept while the fragment is dropped.

🤖 Generated with Claude Code

kblok and others added 3 commits October 8, 2026 10:48
Connecting with a browserURL behind a reverse proxy or tunnel dropped the
path prefix, because /json/version was resolved as an absolute path. The
endpoint is now built by appending /json/version to the existing path, keeping
the query string and dropping the fragment.

Co-Authored-By: Claude Haiku 5.5 <noreply@anthropic.com>
The browser-level test could not run in pipe mode, because a pipe
browser has no WebSocket endpoint to return from /json/version. Upstream
tests this rewrite directly on the URL helper, so do the same here and
expose GetWSEndpointURL to the test assembly.

Co-Authored-By: Claude Haiku 5.5 <noreply@anthropic.com>
@kblok
kblok merged commit 761df4f into master Oct 9, 2026
27 of 28 checks passed
@kblok
kblok deleted the implement-upstream-change-15435 branch October 9, 2026 11:22
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant