Skip to content

Commit

Permalink
fix(ui): take care of base href to get version (#5309)
Browse files Browse the repository at this point in the history
  • Loading branch information
richardlt authored Jul 8, 2020
1 parent 0651356 commit 4c8a0ff
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
2 changes: 1 addition & 1 deletion ui/src/app/service/monitoring/monitoring.service.ts
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ export class MonitoringService {
getVersion(): Observable<MonitoringVersion> {
let params = new HttpParams();
params = params.append('ts', new Date().getTime().toString());
return this._http.get<MonitoringVersion>('/mon/version', { params });
return this._http.get<MonitoringVersion>('./mon/version', { params });
}

getStatus(): Observable<MonitoringStatus> {
Expand Down
10 changes: 5 additions & 5 deletions ui/src/app/views/admin/service/list/service.list.html
Original file line number Diff line number Diff line change
Expand Up @@ -105,16 +105,16 @@ <h1>
<h1>API Debug</h1>
<ul>
<li>
<a href="/cdsapi/admin/debug/goroutine?debug=2" target="_blank">Full goroutine stack dump</a>
<a href="./cdsapi/admin/debug/goroutine?debug=2" target="_blank">Full goroutine stack dump</a>
</li>
<li *ngFor="let profile of profiles | keys">
<a href="/cdsapi/admin/debug/{{profile}}?debug=1" target="_blank">{{profile}} ({{profiles[profile]}})</a>
<a href="./cdsapi/admin/debug/{{profile}}?debug=1" target="_blank">{{profile}} ({{profiles[profile]}})</a>
</li>
<li>
<a href="/cdsapi/admin/debug/trace?seconds=30" target="_blank">Trace</a>
<a href="./cdsapi/admin/debug/trace?seconds=30" target="_blank">Trace</a>
</li>
<li>
<a href="/cdsapi/admin/debug/cpu?seconds=30" target="_blank">CPU Profile</a>
<a href="./cdsapi/admin/debug/cpu?seconds=30" target="_blank">CPU Profile</a>
</li>
</ul>
</div>
Expand All @@ -125,4 +125,4 @@ <h1>API Debug</h1>
<div class="ui text active loader">{{ 'common_loading' | translate }}</div>
</ng-template>
</app-scrollview>
</div>
</div>

0 comments on commit 4c8a0ff

Please sign in to comment.