Просмотр исходного кода

fix(switchorg): fixes broken redirect when switchin org

bergquist 9 лет назад
Родитель
Сommit
4110c7ffb0
1 измененных файлов с 1 добавлено и 2 удалено
  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}/`;
    });
  };
 }