© 2026 Hedgehog Software, LLC

TwitterGitHubDiscord
More
CommunitiesDocsAboutTermsPrivacy
Search
Star
Setup for Free
FilamentF
Filament•3y ago•
3 replies
harps

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
routeIs
routeIs
returns true in the
getNavigationItems
getNavigationItems
function in the parent page class of list records I have tried adding a
getNavigationItems
getNavigationItems
function in the list items page resource but it doesn't call it.

How do I change the
isActiveWhen
isActiveWhen
for a menu item that is generated from the the page class that extends
listecords
listecords
?
Screenshot_2023-12-18_at_13.56.43.png
Filament banner
FilamentJoin
A powerful open source UI framework for Laravel • Build and ship admin panels & apps fast with Livewire
20,307Members
Resources

Similar Threads

Was this page helpful?
Recent Announcements

Similar Threads

navigationitem isActiveWhen()
FilamentFFilament / ❓┊help
17mo ago
Navigation Item use isActiveWhen()
FilamentFFilament / ❓┊help
17mo ago
Override configureUsing ?
FilamentFFilament / ❓┊help
16mo ago
navigationitems override
FilamentFFilament / ❓┊help
2y ago