Help with URL Query Parameters for Table Modal Actions in Filament
I'm working on a project, and I have a specific requirement where I need to attach a URL parameter to a table modal action. My goal is to have the modal behave like it’s controlled by URL query parameters. Here’s the detailed functionality I’m aiming for:
1. Open Modal with URL Parameter: Whenever a link with a specific URL parameter is opened, the modal should automatically open. For example, if the URL is https://example.com/page?openTransactionId=123, it should open the modal corresponding to transactionId = 123.
2. Persist Parameter: The URL parameter should persist every time the modal closes and reopens within the same session.
3. Remove Parameter on Close: When the modal is closed, the URL parameter should be stripped off.
2 Replies
Example of what I'm looking for but imagine the url param is linked to the opening and closing of the modal.
Right now I'm just using a script to intercept the record id across pages by storing it in local storage
And using mountTableAction