Lets say I have a collapsible menu, where one entry in the collapsible part is mapped to the route:
test/index
How can I achieve that the the collapsible menu stays open and the entry inside is marked as the active one if I change the site location to lets say:
test/create / test/update / test/detail etc.
In your MenuBuilder you can match those routes with a switch and call
setCurrent()on the item you want to be current. For example:This will set the MenuItem 'Index' to current, if 'route_create' or 'route_update' is the current route.
Another appoach could be to match all routes as you normally did, then call
setDisplay(false)on them to hide them. I didn't try this, but I think this should work, too.