diff --git a/pkg/apiserver/proxy.go b/pkg/apiserver/proxy.go index 06a6e8caf8d..09a4c7b9151 100644 --- a/pkg/apiserver/proxy.go +++ b/pkg/apiserver/proxy.go @@ -190,7 +190,7 @@ func (r *ProxyHandler) ServeHTTP(w http.ResponseWriter, req *http.Request) { proxy.Transport = &proxyTransport{ proxyScheme: req.URL.Scheme, proxyHost: req.URL.Host, - proxyPathPrepend: path.Join(r.prefix, "ns", namespace, resource, id), + proxyPathPrepend: requestInfo.URLPath(), } proxy.FlushInterval = 200 * time.Millisecond proxy.ServeHTTP(w, newReq)