mirror of
https://github.com/grafana/grafana.git
synced 2025-08-02 23:35:15 +08:00
only render direct children on the landing page routes (#56720)
This commit is contained in:
@ -171,7 +171,11 @@ func (s *ServiceImpl) getServerAdminNode(c *models.ReqContext) *navtree.NavLink
|
||||
}
|
||||
|
||||
if len(adminNavLinks) > 0 {
|
||||
adminNode.Url = adminNavLinks[0].Url
|
||||
if s.cfg.IsFeatureToggleEnabled(featuremgmt.FlagTopnav) {
|
||||
adminNode.Url = s.cfg.AppSubURL + "/admin/server"
|
||||
} else {
|
||||
adminNode.Url = adminNavLinks[0].Url
|
||||
}
|
||||
}
|
||||
|
||||
return adminNode
|
||||
|
Reference in New Issue
Block a user