Commit 3f83bf6e by Torkel Ödegaard

Merge branch 'v3.1.x'

parents e58ccc5a 4545b4d3
......@@ -45,7 +45,7 @@
</li>
<li ng-show="::!ctrl.isSignedIn">
<a href="{{ctrl.loginUrl}}" class="sidemenu-item">
<a href="{{ctrl.loginUrl}}" class="sidemenu-item" target="_self">
<span class="icon-circle sidemenu-icon"><i class="fa fa-fw fa-sign-in"></i></span>
<span class="sidemenu-item-text">Sign in</span>
</a>
......
......@@ -23,13 +23,13 @@ export class SideMenuCtrl {
this.mainLinks = config.bootData.mainNavLinks;
this.openUserDropdown();
this.loginUrl = '/login?redirect=' + encodeURIComponent(this.$location.path());
this.loginUrl = 'login?redirect=' + encodeURIComponent(this.$location.path());
this.$scope.$on('$routeChangeSuccess', () => {
if (!this.contextSrv.pinned) {
this.contextSrv.sidemenu = false;
}
this.loginUrl = '/login?redirect=' + encodeURIComponent(this.$location.path());
this.loginUrl = 'login?redirect=' + encodeURIComponent(this.$location.path());
});
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment