custom page params
Hi,
I'm upgrading an app from v2 to v3.
I have a custom page that load and manage a model that does not have a Resource.
In v2 the page structure was like this
the generated route was /project-status/{projectStatusPivot}
Now in v3
does not work and the generated route is admin/project-status?projectStatusPivot=2.
How can I configure the page in order to make it work with the route admin/project-status/2 ?
Thanks in advance
Solution:Jump to solution
I think if you just override getRoutePath, or if you want more control override overriding the routes method it should let you do what you're after?
https://github.com/filamentphp/filament/blob/f93758a103e79fd74200f29ebcef97368a96abb8/packages/panels/src/Pages/Concerns/HasRoutes.php#L36-L39...
2 Replies
Solution
I think if you just override getRoutePath, or if you want more control override overriding the routes method it should let you do what you're after?
https://github.com/filamentphp/filament/blob/f93758a103e79fd74200f29ebcef97368a96abb8/packages/panels/src/Pages/Concerns/HasRoutes.php#L36-L39
it works, thanks.