From 6696c86348e962a53e56d7b92dc43b612fcbd627 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 eff58014..b74623c4 100644 --- a/patches/web-server/proxy-uri.diff +++ b/patches/web-server/proxy-uri.diff @@ -145,7 +145,7 @@ Index: third-party-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 ?? "")), + }; + } +