Skip to content

Commit

Permalink
mgr/dashboard: fix base-href: revert it to previous approach
Browse files Browse the repository at this point in the history
Fixes: https://tracker.ceph.com/issues/50684
Signed-off-by: Avan Thakkar <athakkar@redhat.com>
(cherry picked from commit b6f9292)

 Conflicts:

	src/pybind/mgr/dashboard/frontend/src/app/app.module.ts
      - Adopt the changes coming from master for this file.

(cherry picked from commit 3802683)
  • Loading branch information
avanthakkar authored and liewegas committed May 13, 2021
1 parent 763aebb commit 71b14f0
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 7 deletions.
5 changes: 0 additions & 5 deletions src/pybind/mgr/dashboard/frontend/src/app/app.module.ts
@@ -1,4 +1,3 @@
import { APP_BASE_HREF } from '@angular/common';
import { HTTP_INTERCEPTORS, HttpClientModule } from '@angular/common/http';
import {
ErrorHandler,
Expand Down Expand Up @@ -58,10 +57,6 @@ import { environment } from '../environments/environment';
useClass: ApiInterceptorService,
multi: true
},
{
provide: APP_BASE_HREF,
useValue: window['base-href']
},
{
provide: TRANSLATIONS,
useFactory: (locale) => {
Expand Down
3 changes: 1 addition & 2 deletions src/pybind/mgr/dashboard/frontend/src/index.html
Expand Up @@ -3,10 +3,9 @@
<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">
Expand Down

0 comments on commit 71b14f0

Please sign in to comment.