fix(switchorg): fixes broken redirect when switchin org

This commit is contained in:
bergquist
2016-03-22 09:25:46 +01:00
parent 7f79024e6a
commit 4110c7ffb0
@@ -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}/`;
});
};
}