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 <[email protected]>
(cherry picked from commit b6f9292)

 Conflicts:
	src/pybind/mgr/dashboard/frontend/src/app/app.module.ts
     - Adopt the changes coming from master.

(cherry picked from commit fab19dd)
  • Loading branch information
avanthakkar authored and liewegas committed May 13, 2021
1 parent 94f7c87 commit 9b8513d
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
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
import { APP_BASE_HREF } from '@angular/common';
import { HttpClientModule, HTTP_INTERCEPTORS } from '@angular/common/http';
import {
ErrorHandler,
Expand Down Expand Up @@ -59,10 +58,6 @@ import { environment } from '../environments/environment';
useClass: ApiInterceptorService,
multi: true
},
{
provide: APP_BASE_HREF,
useValue: window['base-href']
},
{
provide: TRANSLATIONS,
useFactory: (locale: string) => {
Expand Down
3 changes: 1 addition & 2 deletions src/pybind/mgr/dashboard/frontend/src/index.html
Original file line number Diff line number Diff line change
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, shrink-to-fit=no">
Expand Down

0 comments on commit 9b8513d

Please sign in to comment.