EntityAuditBundle icon indicating copy to clipboard operation
EntityAuditBundle copied to clipboard

Keep menu-group open when viewing revisions

Open knallcharge opened this issue 3 months ago • 0 comments

Feature Request

I currently have an admin-group in my menu with two links, one to the user-list and one to the audit-controller, configured like this:

      grpadmin:
        label: 'Administration'
        icon: 'fa fa-users'
        roles: [ ROLE_ADMIN ]
        items:
          - admin.user
          - route: 'simple_things_entity_audit_home'
            label: 'Audit'

So when I click on the menu entry it calls the route simple_things_entity_audit_home and keeps the menu-group open, but when I navigate through the different pages of the audit-controller, the menu-group closes.

What I'd like to achieve is to leave the menu-group open (which is the default behaviour for all default sonata-routes e.g. clicking on "edit user" the "Administration"-group stays open with the "User"-entry highlighted) when navigating through all routes named simple_things_entity_* (viewrevision, viewentity_detail, viewentity and compare).

Is there a way to implement this?

knallcharge avatar Sep 24 '25 08:09 knallcharge