© 2026 Hedgehog Software, LLC

TwitterGitHubDiscord
More
CommunitiesDocsAboutTermsPrivacy
Search
Star
Setup for Free
FilamentF
Filament•2y ago•
1 reply
slovenianGooner

Persist route when opening a modal

My app consists of a DocumentResource...each Document has a folder_id, that determines which folder the document belongs to.

DocumentResource then registers an index page that matches the following route:
/{folder?}
/{folder?}
where the folder parameter is optional.

Users can then filter through folders and documents list accordingly. They can also then view the document details in a slideOver defined with a ViewAction.

The expected behavior would be that the index route stays on the current folder when clicking the ViewAction, but what actually happens is that the index view is reset without the folder route parameter - the actual URL in the browser stays the same.

Is there a way to persist the folder parameter when the view modal opens?

Attached a video of the flow.
Filament banner
FilamentJoin
A powerful open source UI framework for Laravel • Build and ship admin panels & apps fast with Livewire
20,307Members
Resources

Similar Threads

Was this page helpful?
Recent Announcements

Similar Threads

Scroll to bottom when opening a modal?
FilamentFFilament / ❓┊help
13mo ago
Opening a modal with create
FilamentFFilament / ❓┊help
2y ago
Opening modal from a custom page
FilamentFFilament / ❓┊help
2y ago
Opening a confirmation modal after validation.
FilamentFFilament / ❓┊help
3y ago