Fixes: https://tracker.ceph.com/issues/50684
Signed-off-by: Avan Thakkar <athakkar@redhat.com>
(cherry picked from commit
b6f92922f5c80223fd288d98ce85405a650c0135)
Conflicts:
src/pybind/mgr/dashboard/frontend/src/app/app.module.ts
- Adopt the changes coming from master for this file.
-import { APP_BASE_HREF } from '@angular/common';
import { HTTP_INTERCEPTORS, HttpClientModule } from '@angular/common/http';
import {
ErrorHandler,
useClass: ApiInterceptorService,
multi: true
},
- {
- provide: APP_BASE_HREF,
- useValue: window['base-href']
- },
{
provide: TRANSLATIONS,
useFactory: (locale) => {
<head>
<meta charset="utf-8">
<title>Ceph</title>
- <base href="/">
<script>
- window['base-href'] = window.location.pathname;
+ document.write('<base href="' + document.location+ '" />');
</script>
<meta name="viewport" content="width=device-width, initial-scale=1">