How to change page number programmatically in a table
So, I'm trying to to open page 38 automatically when opening a resource table.
Currently I use the ListRecords class to redirect with a specific page.
Unfortunately it's redirecting to a livewire route instead of the intended route. Is there other strategy I can use?


11 Replies
livewire/update
is internal livewire url to update data.. in your case it should be like burb.test/buckets?page=38
not livewire@Vp it's filament that redirecting to livewire. the $url contains the actual url. How do I prevent filament to redirecting it to livewire url? I only need basic redirect to open the default page.
Here's the dd of the $url

Ok.. not sure but what about
redirect($url)
It's the same, I originally using that code, just trying other method to see if it's work.
Here's the video for a reference

The main objective is to jump to a particular page by default.
Try like this
Inside ListRecord
Here? It doesn't work.

Oh wait, it's working, just the query parameter is not there.
Thank you @Vp
Yeah not sure about how to show that one anymore..
welcome