Skip to content

Commit 10c7128

Browse files
authored
fix(kiali): update login url (#1097)
* update login url * Update with regex
1 parent 8203aaf commit 10c7128

File tree

1 file changed

+2
-1
lines changed
  • plugins/kiali-backend/src/clients

1 file changed

+2
-1
lines changed

plugins/kiali-backend/src/clients/fetch.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -147,7 +147,8 @@ export class KialiFetcher {
147147
};
148148
}
149149

150-
requestInit.url = new URL(endpoint, this.KialiDetails.url).href;
150+
const loginUrl = `${this.KialiDetails.url}/${endpoint.replace(/^\//g, '')}`;
151+
requestInit.url = new URL(loginUrl).href;
151152

152153
if (this.KialiDetails.skipTLSVerify) {
153154
requestInit.httpsAgent = new https.Agent({

0 commit comments

Comments
 (0)