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,
                            ],
                        ])),


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])),
Was this page helpful?