]> git.apps.os.sepia.ceph.com Git - ceph-ci.git/commitdiff
mgr/dashboard: Configuring an URL prefix does not work as expected
authorVolker Theile <vtheile@suse.com>
Thu, 26 Sep 2019 15:33:24 +0000 (17:33 +0200)
committerVolker Theile <vtheile@suse.com>
Thu, 26 Sep 2019 15:37:16 +0000 (17:37 +0200)
Fixes: https://tracker.ceph.com/issues/41797
Signed-off-by: Volker Theile <vtheile@suse.com>
src/pybind/mgr/dashboard/frontend/src/app/core/auth/sso/sso-not-found/sso-not-found.component.html
src/pybind/mgr/dashboard/frontend/src/app/core/not-found/not-found.component.html
src/pybind/mgr/dashboard/frontend/src/app/shared/services/module-status-guard.service.ts

index 59c6889e8a1758016a9dcd9b1bb309e841b3ab53..e0811fa41a4bc7d50db57f26ef61ee25e21fca40 100644 (file)
@@ -4,7 +4,7 @@
     <h4 i18n>Return to <a class="sso-logout" [href]="logoutUrl">Login Page</a>. You'll be logged out from the Identity Provider when you retry logging in.</h4>
 
     <img class="img-fluid mx-auto rounded"
-         src="/assets/1280px-Nautilus_Octopus.jpg">
+         src="assets/1280px-Nautilus_Octopus.jpg">
     <span>
       "<a href="https://www.flickr.com/photos/146401137@N06/40335060661">Nautilus Octopus</a>" by Jin Kemoole is licensed under
       <a rel="nofollow"
index 231047bef0634f69c6990aa91849ab2ac682745d..8c8f6113ae5bd35522143ac111b496b5eb45ebda 100644 (file)
@@ -3,7 +3,7 @@
     <h1 i18n>Sorry, we could not find what you were looking for</h1>
 
     <img class="img-fluid mx-auto rounded"
-         src="/assets/1280px-Nautilus_Octopus.jpg">
+         src="assets/1280px-Nautilus_Octopus.jpg">
     <span>
       "<a href="https://www.flickr.com/photos/146401137@N06/40335060661">Nautilus Octopus</a>" by Jin Kemoole is licensed under
       <a rel="nofollow"
index 50bcc947d69d732545105a848344683dbf4dc407..46f3c8400cefd9df2210bbf6259720a91ea35354 100644 (file)
@@ -52,7 +52,7 @@ export class ModuleStatusGuardService implements CanActivate, CanActivateChild {
       return observableOf(true);
     }
     const config = route.data['moduleStatusGuardConfig'];
-    return this.http.get(`/api/${config.apiPath}/status`).pipe(
+    return this.http.get(`api/${config.apiPath}/status`).pipe(
       map((resp: any) => {
         if (!resp.available) {
           this.router.navigate([config.redirectTo, resp.message || '']);