Commit a0da6661 by Tobias Skarhed

Fix url param errors

parent 624f3a01
...@@ -21,7 +21,8 @@ export class KeybindingSrv { ...@@ -21,7 +21,8 @@ export class KeybindingSrv {
private datasourceSrv, private datasourceSrv,
private timeSrv, private timeSrv,
private contextSrv, private contextSrv,
private $window private $window,
private $route
) { ) {
// clear out all shortcuts on route change // clear out all shortcuts on route change
$rootScope.$on('$routeChangeSuccess', () => { $rootScope.$on('$routeChangeSuccess', () => {
...@@ -271,7 +272,8 @@ export class KeybindingSrv { ...@@ -271,7 +272,8 @@ export class KeybindingSrv {
this.bind('d a', () => { this.bind('d a', () => {
this.$location.search('autofitpanels', this.$location.search().autofitpanels ? null : true); this.$location.search('autofitpanels', this.$location.search().autofitpanels ? null : true);
//Force reload //Force reload
this.$window.location.href = this.$location.absUrl();
this.$route.reload();
}); });
} }
} }
......
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