I’ve got a collection of products from Xano that I’m building out some user filters for. Ideally, I would like the URL to update with the appropriate query parameters so that they can share that URL (or bookmark it) and it will pull up the exact results they want.
The trouble I’m having is I’m able to update the query variables and get the correct results, but:
-
When I change my dropdown filter, the URL doesn’t update with the parameter (even though the data reloads correctly)
-
When I click the “Reset Filters” button, I can’t figure out how to get the dropdown to display the default “Biggest Price Drops” value.
Here is the workflow that fires when a user selects how they want the products sorted:
As you can see in the collection, the correct variables are placed (hence why my results are accurate, despite no parameters being added in the URL when I change values):
And here is the workflow that fires when the reset button is hit, it just resets all of the variables back to their default state:
And here are (some) of the settings for the dropdown:
Any idea as to what I am missing here?