浏览代码

fix(switchorg): fixes broken redirect when switchin org

bergquist 9 年之前
父节点
当前提交
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}/`;
    });
  };
 }