πΊπΈUnited States justin.green
We are having a similar issue. We are using this in an AJAX search view in combination with Views AJAX History. When AJAX is disabled, everything works well, but when AJAX is enabled, all of our search criteria (search string and facets) are removed when a sort is executed.
To reproduce
- Install facets, search_api, search_api_sorts and views_ajax_history
- Configure a facet
- Enable AJAX history on the view that uses facets
- Configure Search API Sorts
- On the search view page, search a string and select a facet (results should update and URL string updated appropriately)
- Perform a Search API Sorts sort (all search and facet parameters are cleared out)
Just for testing, I have taken Views AJAX History out of the equation. In that case, the facets are still cleared out. It would be great if the sort could be appended to the end of an AJAX search query URL.
Thanks!