mirror of
https://github.com/grafana/grafana.git
synced 2025-02-25 18:55:37 -06:00
dashboards: make scripted dashboards work using the old legacy urls
Scripted dashboards are still requested from /dashboard/script/scripted.js #7883
This commit is contained in:
@@ -19,7 +19,7 @@ export class LoadDashboardCtrl {
|
||||
}
|
||||
|
||||
// if no uid, redirect to new route based on slug
|
||||
if (!$routeParams.uid) {
|
||||
if (!($routeParams.type === 'script' || $routeParams.type === 'snapshot') && !$routeParams.uid) {
|
||||
backendSrv.get(`/api/dashboards/db/${$routeParams.slug}`).then(res => {
|
||||
if (res) {
|
||||
$location.path(res.meta.url);
|
||||
|
||||
Reference in New Issue
Block a user