Преглед на файлове

Merge branch 'master' of github.com:grafana/grafana

Torkel Ödegaard преди 9 години
родител
ревизия
7e6314dcac
променени са 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) {
  switchOrg(orgId) {
    this.backendSrv.post('/api/user/using/' + orgId).then(() => {
    this.backendSrv.post('/api/user/using/' + orgId).then(() => {
-     window.location.href = window.location.href;
-     this.$location.path('/');
+     window.location.href = `${config.appSubUrl}/`;
    });
    });
  };
  };
 }
 }