dashboards: update dashboard/folder url if browser url is not the same as from backend

This commit is contained in:
Marcus Efraimsson
2018-01-31 18:24:47 +01:00
parent c0c3f17d84
commit 40c83e3e22
4 changed files with 24 additions and 8 deletions

View File

@@ -29,6 +29,10 @@ export class LoadDashboardCtrl {
}
dashboardLoaderSrv.loadDashboard($routeParams.type, $routeParams.slug, $routeParams.uid).then(function(result) {
if ($location.path() !== result.meta.url) {
$location.path(result.meta.url).replace();
}
if ($routeParams.keepRows) {
result.meta.keepRows = true;
}