platform icon indicating copy to clipboard operation
platform copied to clipboard

Back button causes field filters to break

Open jaymeh opened this issue 5 months ago • 2 comments

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:

  1. Setup new orchid project
  2. Clone and follow installation instructions in the README for this package https://github.com/jaymeh/fabric-products
  3. Follow the seeding instructions to generate some test data
  4. Login to Orchid and visit the Pricing Page, click view on the actions section
  5. Hit the back button
  6. 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:

Image

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

jaymeh avatar Jul 15 '25 15:07 jaymeh

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,
],

tabuna avatar Jul 15 '25 21:07 tabuna

Thanks for looking into this @tabuna ,

Perfect thanks for that, I'll add in the workaround!

jaymeh avatar Jul 16 '25 08:07 jaymeh