From a0da66610ec92a24fe6f0735393fde722ba08d9d Mon Sep 17 00:00:00 2001 From: Tobias Skarhed Date: Tue, 7 Aug 2018 14:48:22 +0200 Subject: [PATCH] Fix url param errors --- public/app/core/services/keybindingSrv.ts | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/public/app/core/services/keybindingSrv.ts b/public/app/core/services/keybindingSrv.ts index 0930a16d797..e5e7006dcd7 100644 --- a/public/app/core/services/keybindingSrv.ts +++ b/public/app/core/services/keybindingSrv.ts @@ -21,7 +21,8 @@ export class KeybindingSrv { private datasourceSrv, private timeSrv, private contextSrv, - private $window + private $window, + private $route ) { // clear out all shortcuts on route change $rootScope.$on('$routeChangeSuccess', () => { @@ -271,7 +272,8 @@ export class KeybindingSrv { this.bind('d a', () => { this.$location.search('autofitpanels', this.$location.search().autofitpanels ? null : true); //Force reload - this.$window.location.href = this.$location.absUrl(); + + this.$route.reload(); }); } }