[v9.3.x] Navigation: Prevent app crash when importing a dashboard with a uid of home (#60092)

Navigation: Prevent app crash when importing a dashboard with a uid of `home` (#59874)

* change home id to be more unique, refactor so that home circular reference is never created

* prefix starred dashboards

* update reducer

(cherry picked from commit a589929c92)

Co-authored-by: Ashley Harrison <ashley.harrison@grafana.com>
This commit is contained in:
Grot (@grafanabot)
2022-12-09 13:37:59 +00:00
committed by GitHub
co-authored by Ashley Harrison
parent 8410c327a4
commit d74552e02f
3 changed files with 14 additions and 10 deletions
+1 -1
View File
@@ -342,7 +342,7 @@ func (s *ServiceImpl) buildStarredItemsNavLinks(c *models.ReqContext) ([]*navtre
})
for _, starredItem := range starredDashboards {
starredItemsChildNavs = append(starredItemsChildNavs, &navtree.NavLink{
Id: starredItem.Uid,
Id: "starred/" + starredItem.Uid,
Text: starredItem.Title,
Url: starredItem.GetUrl(),
})