Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix(ui): take care of base href to get version #5309

Merged
merged 1 commit into from
Jul 8, 2020
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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>