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.
Was this page helpful?