Update plugins/kubernetes-backend/src/service/KubernetesProxy.ts

Co-authored-by: Jamie Klassen <jklassen@vmware.com>
Signed-off-by: mario_ma <mario.ma.node@gmail.com>
This commit is contained in:
mario_ma
2023-07-05 22:18:05 +08:00
committed by GitHub
parent be6395601d
commit 0bbf26da60
@@ -143,7 +143,7 @@ export class KubernetesProxy {
const cluster = await this.getClusterForRequest(req);
const url = new URL(cluster.url);
return path.replace(
new RegExp(`^${originalReq.baseUrl}`),
new RegExp(`^${req.baseUrl}`),
url.pathname || '',
);
},