Skip to content

Commit

Permalink
Home: Fixes breadcrumb for custom home dashboard (grafana#61499)
Browse files Browse the repository at this point in the history
* Home: Fixes breadcrumb for custom home dashboard

* restore using home page cfg setting
  • Loading branch information
torkelo authored Jan 24, 2023
1 parent 38d3d1c commit 7c786c1
Showing 1 changed file with 0 additions and 8 deletions.
8 changes: 0 additions & 8 deletions pkg/services/navtree/navtreeimpl/navtree.go
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand Down

0 comments on commit 7c786c1

Please sign in to comment.