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