Back button causes field filters to break
Describe the bug When clicking a link to go to another screen, then pressing the back button, select boxes are no longer populated with content.
To Reproduce Steps to reproduce the behavior:
- Setup new orchid project
- Clone and follow installation instructions in the README for this package https://github.com/jaymeh/fabric-products
- Follow the seeding instructions to generate some test data
- Login to Orchid and visit the Pricing Page, click view on the actions section
- Hit the back button
- Try to pick a category from the filters.
Expected behavior I'd expect to be able to still interact with the filters normally and have them function as required.
Screenshots I've provided a screenshot below:
And a video:
https://share.cleanshot.com/J30yjTh5wXt5R3n8mZdh
Desktop (please complete the following information):
- OS: MacOS
- Browser: Brave
- Version: Brave 1.80.115 (Chromium: 138.0.7204.97)
Server (please complete the following information):
- Platfrom Version: 14.52.3
- Laravel Version: 12.20.0
- PHP Version: 8.2
- Database: MariaDB
- Database Version: 10.6.21
It looks like I was able to reproduce the issue. While I'm working on a fix, you can use the following workaround by disabling the cache in the config:
'turbo' => [
'cache' => false,
],
Thanks for looking into this @tabuna ,
Perfect thanks for that, I'll add in the workaround!