mirror of
https://github.com/grafana/grafana.git
synced 2025-02-25 18:55:37 -06:00
dashboards: update dashboard/folder url if browser url is not the same as from backend
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user