Skip to content

Keep menu-group open when viewing revisions #659

@knallcharge

Description

@knallcharge

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?

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions