I improved the component’s behavior to something cleaner, and I took the opportunity to add order_dir to the URL to remember the sort direction as well
I simplified the code by making the URL the single source of truth, no more duplicated state which was creating the bugs we observed.
@pierre-gilles, in the same way you fixed this uncomfortable behavior in the scene search, could you also do it in the device search in the zigbee integration (…/dashboard/integration/device/zigbee2mqtt) and the device search in the MQTT integration (…/dashboard/integration/device/mqtt)?
And there may be other similar pages in other integrations, but I don’t use them or I use them with few devices so it didn’t catch my eye…