|
@@ -18,7 +18,7 @@ export class SoloPanelCtrl {
|
|
|
|
|
|
|
|
// if no uid, redirect to new route based on slug
|
|
// if no uid, redirect to new route based on slug
|
|
|
if (!($routeParams.type === 'script' || $routeParams.type === 'snapshot') && !$routeParams.uid) {
|
|
if (!($routeParams.type === 'script' || $routeParams.type === 'snapshot') && !$routeParams.uid) {
|
|
|
- backendSrv.get(`/api/dashboards/db/${$routeParams.slug}`).then(res => {
|
|
|
|
|
|
|
+ backendSrv.getDashboardBySlug($routeParams.slug).then(res => {
|
|
|
if (res) {
|
|
if (res) {
|
|
|
const url = locationUtil.stripBaseFromUrl(res.meta.url.replace('/d/', '/d-solo/'));
|
|
const url = locationUtil.stripBaseFromUrl(res.meta.url.replace('/d/', '/d-solo/'));
|
|
|
$location.path(url).replace();
|
|
$location.path(url).replace();
|