F
Filamentβ€’2y ago
rich06

Skip table list go directly to edit page

This question is for a Filament Admin v2 installation. For non-admin users on my site they are to have the ability to modify some basic details of their organisation. Currently, for the organisation resource menu link they correctly see the table listing just their own organisation so they click on edit to make their changes. However, what I want is for the user to skip seeing the single organisation list and be dropped directly into the edit page which I understand can be best done with a redirect() to the correct edit route. However where do I add the call to redirect()? The resource class has many static functions and I can't seem to see an 'init()' or 'setup()' type function that I can override.
Solution:
Should it be getNavigationUrl() ? Edit: Seems to work.. πŸ™‚
Jump to solution
1 Reply
Solution
rich06
rich06β€’2y ago
Should it be getNavigationUrl() ? Edit: Seems to work.. πŸ™‚

Did you find this page helpful?