For XWiki, fixing [this TODO|https://github.com/xwiki-contrib/cristal/blob/maind69978c71583a8bcb461447913404362d1e7f9d4/core/navigation-tree/navigation-tree-xwiki/src/components/componentsInit.ts#L98L162] should be enough. The issue exists with the other backends as well and will probably require checking manually if children exist (which is not hard to do through `NavigationTreeSource.getChildNodes()`, but possibly expensive).
This message was sent by Atlassian Jira (v9.3.0#930000-sha1:287aeb6)
If image attachments aren't displayed, see this article.