Преглед изворни кода

Redirect to home when switching orgs

utkarshcmu пре 9 година
родитељ
комит
f6cbbe1e64
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('/');
    });
  };
 }