diff --git a/plugins/kiali-backend/src/clients/fetch.ts b/plugins/kiali-backend/src/clients/fetch.ts index a750df62d3..8fa8cf104f 100644 --- a/plugins/kiali-backend/src/clients/fetch.ts +++ b/plugins/kiali-backend/src/clients/fetch.ts @@ -147,7 +147,8 @@ export class KialiFetcher { }; } - requestInit.url = new URL(endpoint, this.KialiDetails.url).href; + const loginUrl = `${this.KialiDetails.url}/${endpoint.replace(/^\//g, '')}`; + requestInit.url = new URL(loginUrl).href; if (this.KialiDetails.skipTLSVerify) { requestInit.httpsAgent = new https.Agent({