mirror of
https://github.com/grafana/grafana.git
synced 2025-02-25 18:55:37 -06:00
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:
parent
38d3d1c02b
commit
7c786c11e3
@ -218,14 +218,6 @@ func (s *ServiceImpl) getHomeNode(c *models.ReqContext, prefs *pref.Preference)
|
||||
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{
|
||||
Text: "Home",
|
||||
Id: "home",
|
||||
|
Loading…
Reference in New Issue
Block a user