浏览代码

Merge pull request #4440 from utkarshcmu/redirect

Redirect to home when switching orgs
Carl Bergquist 9 年之前
父节点
当前提交
7f79024e6a
共有 1 个文件被更改,包括 1 次插入0 次删除
  1. 1 0
      public/app/core/components/sidemenu/sidemenu.ts

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

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