changes to new urlformat for home dashboard (#10738)

This commit is contained in:
Carl Bergquist
2018-02-05 10:24:48 +01:00
committed by Torkel Ödegaard
parent 0701188e64
commit cc0cc8dd73
5 changed files with 7 additions and 6 deletions

View File

@@ -9,7 +9,7 @@ export class LoadDashboardCtrl {
if (!$routeParams.uid && !$routeParams.slug) {
backendSrv.get('/api/dashboards/home').then(function(homeDash) {
if (homeDash.redirectUri) {
$location.path('dashboard/' + homeDash.redirectUri);
$location.path(homeDash.redirectUri);
} else {
var meta = homeDash.meta;
meta.canSave = meta.canShare = meta.canStar = false;