diff --git a/src/portal/src/app/base/project/helm-chart/helm-chart-detail/helm-chart.service.ts b/src/portal/src/app/base/project/helm-chart/helm-chart-detail/helm-chart.service.ts index 9aee0c1a9..ca3415561 100644 --- a/src/portal/src/app/base/project/helm-chart/helm-chart-detail/helm-chart.service.ts +++ b/src/portal/src/app/base/project/helm-chart/helm-chart-detail/helm-chart.service.ts @@ -169,9 +169,9 @@ export class HelmChartDefaultService extends HelmChartService { let chartFileRegexPattern = new RegExp('^http.*/chartrepo/(.*)'); if (chartFileRegexPattern.test(filename)) { let match = filename.match('^http.*/chartrepo/(.*)'); - url = `${V1_BASE_HREF + "/chartrepo"}/${match[1]}`; + url = `${DOWNLOAD_CHART_ENDPOINT}/${match[1]}`; } else { - url = `${V1_BASE_HREF + "/chartrepo"}/${projectName}/${filename}`; + url = `${DOWNLOAD_CHART_ENDPOINT}/${projectName}/${filename}`; } return this.http.get(url, { responseType: 'blob', @@ -209,3 +209,6 @@ export class HelmChartDefaultService extends HelmChartService { .pipe(catchError(this.handleErrorObservable)); } } + + +export const DOWNLOAD_CHART_ENDPOINT: string = "/chartrepo";