Home: Fixes breadcrumb for custom home dashboard (#61499)

* Home: Fixes breadcrumb for custom home dashboard

* restore using home page cfg setting
This commit is contained in:
Torkel Ödegaard
2023-01-24 09:33:12 +01:00
committed by GitHub
parent 38d3d1c02b
commit 7c786c11e3

View File

@@ -218,14 +218,6 @@ func (s *ServiceImpl) getHomeNode(c *models.ReqContext, prefs *pref.Preference)
homeUrl = homePage homeUrl = homePage
} }
if prefs.HomeDashboardID != 0 {
slugQuery := dashboards.GetDashboardRefByIDQuery{ID: prefs.HomeDashboardID}
err := s.dashboardService.GetDashboardUIDByID(c.Req.Context(), &slugQuery)
if err == nil {
homeUrl = dashboards.GetDashboardURL(slugQuery.Result.UID, slugQuery.Result.Slug)
}
}
homeNode := &navtree.NavLink{ homeNode := &navtree.NavLink{
Text: "Home", Text: "Home",
Id: "home", Id: "home",