© 2026 Hedgehog Software, LLC

TwitterGitHubDiscord
More
CommunitiesDocsAboutTermsPrivacy
Search
Star
Setup for Free
FilamentF
Filament•7mo ago•
3 replies
Hasan Tahseen

Go to List page with filters

I want to make an action to go to the list page with filters in it. this is the code for the action

  Tables\Actions\Action::make('activities')
                        ->icon('heroicon-o-clock')
                        ->url(fn($record) => ActivityLogResource::getUrl(parameters: [
                            'tableFilters' => [
                                'causer_id' => $record->id,
                            ],
                        ])),
  Tables\Actions\Action::make('activities')
                        ->icon('heroicon-o-clock')
                        ->url(fn($record) => ActivityLogResource::getUrl(parameters: [
                            'tableFilters' => [
                                'causer_id' => $record->id,
                            ],
                        ])),


the problem is that the page is updated which make the filters go away. how to solve it? it doesn't works well
Solution
I solved it with this
                        ->url(fn($record) => ActivityLogResource::getUrl('index', ['tableFilters[causer_id][values][0]' => $record->id])),
                        ->url(fn($record) => ActivityLogResource::getUrl('index', ['tableFilters[causer_id][values][0]' => $record->id])),
Jump to solution
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

Skip table list go directly to edit page
FilamentFFilament / ❓┊help
3y ago
Custom page with table and filters
FilamentFFilament / ❓┊help
16mo ago
Page Filters with InfoLists not working
FilamentFFilament / ❓┊help
2y ago
How to get selected filters in filtersApplyAction?
FilamentFFilament / ❓┊help
2y ago