mirror of
https://github.com/grafana/grafana.git
synced 2025-02-25 18:55:37 -06:00
dashboard: fix loading of snapshot and scripted dashboard (#10755)
Fixes #10753
This commit is contained in:
parent
cc0cc8dd73
commit
6def21e83f
@ -31,10 +31,12 @@ export class LoadDashboardCtrl {
|
||||
}
|
||||
|
||||
dashboardLoaderSrv.loadDashboard($routeParams.type, $routeParams.slug, $routeParams.uid).then(function(result) {
|
||||
const url = locationUtil.stripBaseFromUrl(result.meta.url);
|
||||
if (result.meta.url) {
|
||||
const url = locationUtil.stripBaseFromUrl(result.meta.url);
|
||||
|
||||
if (url !== $location.path()) {
|
||||
$location.path(url).replace();
|
||||
if (url !== $location.path()) {
|
||||
$location.path(url).replace();
|
||||
}
|
||||
}
|
||||
|
||||
if ($routeParams.keepRows) {
|
||||
|
Loading…
Reference in New Issue
Block a user