From 3c71e0c5e3963ab32c9308e8cd65da54fe8dbe3c Mon Sep 17 00:00:00 2001 From: Mark Kercso Date: Thu, 16 Apr 2026 14:43:41 +0000 Subject: [PATCH] fix(proxy): Preserve query params in port forwarding proxy Append sourceUrl.search to the proxy target URL so query parameters are forwarded to the localhost service during port forwarding. --- patches/web-server/proxy-uri.diff | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/patches/web-server/proxy-uri.diff b/patches/web-server/proxy-uri.diff index 9f6874c..250603b 100644 --- a/patches/web-server/proxy-uri.diff +++ b/patches/web-server/proxy-uri.diff @@ -152,7 +152,7 @@ Index: code-editor-src/src/vs/server/node/proxyServer.ts + return { + base, + port, -+ target: url.resolve(`http://0.0.0.0:${port}/`, targetPathname), ++ target: url.resolve(`http://0.0.0.0:${port}/`, targetPathname + (sourceUrl.search ?? "")), + }; + } +