Skip to content

Commit

Permalink
fix(kiali): update login url (#1097)
Browse files Browse the repository at this point in the history
* update login url

* Update with regex
  • Loading branch information
josunect authored Jan 22, 2024
1 parent 8203aaf commit 10c7128
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion plugins/kiali-backend/src/clients/fetch.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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({
Expand Down

0 comments on commit 10c7128

Please sign in to comment.