Przeglądaj źródła

fix(switchorg): fixes broken redirect when switchin org

bergquist 9 lat temu
rodzic
commit
4110c7ffb0
1 zmienionych plików z 1 dodań i 2 usunięć
  1. 1 2
      public/app/core/components/sidemenu/sidemenu.ts

+ 1 - 2
public/app/core/components/sidemenu/sidemenu.ts

@@ -86,8 +86,7 @@ export class SideMenuCtrl {
 
  switchOrg(orgId) {
    this.backendSrv.post('/api/user/using/' + orgId).then(() => {
-     window.location.href = window.location.href;
-     this.$location.path('/');
+     window.location.href = `${config.appSubUrl}/`;
    });
  };
 }