mirror of
https://github.com/grafana/grafana.git
synced 2025-02-25 18:55:37 -06:00
This commit is contained in:
parent
5c0fbbf7c8
commit
826dfceac0
@ -9,7 +9,8 @@ export class LoadDashboardCtrl {
|
||||
if (!$routeParams.uid && !$routeParams.slug) {
|
||||
backendSrv.get('/api/dashboards/home').then(function(homeDash) {
|
||||
if (homeDash.redirectUri) {
|
||||
$location.path(homeDash.redirectUri);
|
||||
const newUrl = locationUtil.stripBaseFromUrl(homeDash.redirectUri);
|
||||
$location.path(newUrl);
|
||||
} else {
|
||||
const meta = homeDash.meta;
|
||||
meta.canSave = meta.canShare = meta.canStar = false;
|
||||
|
Loading…
Reference in New Issue
Block a user