Where to override isActiveWhen()
I have a scenario where I have a resource with routes as so,
surveys/pipes {resource list}
surveys/pipes/new {new resource}
I have them in the navigation in a custom navigation group and I have also added surveys/pipes/new to the nav. The issue is that when I'm on this route surveys/pipes/new both surveys/pipes and surveys/pipes/new show as active in the menu.
I think this happens because
How do I change the
surveys/pipes {resource list}
surveys/pipes/new {new resource}
I have them in the navigation in a custom navigation group and I have also added surveys/pipes/new to the nav. The issue is that when I'm on this route surveys/pipes/new both surveys/pipes and surveys/pipes/new show as active in the menu.
I think this happens because
routeIs returns true in the getNavigationItems function in the parent page class of list records I have tried adding a getNavigationItems function in the list items page resource but it doesn't call it.How do I change the
isActiveWhen for a menu item that is generated from the the page class that extends listecords ?