only render direct children on the landing page routes (#56720)

This commit is contained in:
Ashley Harrison
2022-10-12 10:01:33 +01:00
committed by GitHub
parent 26bb139470
commit dd9e1498f9
5 changed files with 10 additions and 50 deletions

View File

@ -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