]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commitdiff
mgr/dashboard: Configuring an URL prefix does not work as expected 31375/head
authorVolker Theile <vtheile@suse.com>
Thu, 26 Sep 2019 15:33:24 +0000 (17:33 +0200)
committerTiago Melo <tmelo@suse.com>
Mon, 4 Nov 2019 17:48:55 +0000 (16:48 -0100)
Fixes: https://tracker.ceph.com/issues/41797
Signed-off-by: Volker Theile <vtheile@suse.com>
(cherry picked from commit 5730883b7e7c80d5f3587d1e997343e96668a21a)

Conflicts:
    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
  - master is using a newer version of boostrap, had to keep the old
css classes

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 b9284bfdcd6ac1406d88b4feb103105b4d9d74b5..6187a09bd24e4775cbee1a7e48cf403dbc73ae57 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-responsive center-block img-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 daeeaf54fd05f7a32c6d6442be7cf43924b6c22a..b50478afbd4e6b878c868e9f26ede94acf2ce85d 100644 (file)
@@ -3,7 +3,7 @@
     <h1 i18n>Sorry, we could not find what you were looking for</h1>
 
     <img class="img-responsive center-block img-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 || '']);