Commit 6def21e8 by Marcus Efraimsson Committed by Torkel Ödegaard

dashboard: fix loading of snapshot and scripted dashboard (#10755)

Fixes #10753
parent cc0cc8dd
......@@ -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) {
......
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