Page with table, query URL
I changed a ViewRecord page to a show a table, which works fine, but when applying filters or sorting, the URL does not update.
What would be a way to force URL query to change on this page?
6 Replies
How did you add the table to the page? Did you wrap it in a custom livewire component or implement
HasTable
on the page directly?class ViewBucketCustom extends ViewRecord implements Tables\Contracts\HasTable
Not 100% sure, but you can try this on the page class:
this does the trick! thanks!
Unknown User•17mo ago
Message Not Public
Sign In & Join Server To View
I don't think multi-column default sort is supported unfortunately. But it looks like you could implement it by overriding
applyDefaultSortingToTableQuery()
on your Page class.
https://github.com/filamentphp/filament/blob/adba0e076f7ddfb358e4a167e83eb10bbaf93d27/packages/tables/src/Concerns/CanSortRecords.php#L94