- Issue created by @lukus
- πΊπΈ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!
- π΅πΉPortugal joao.ramos.costa
Hi @justin.green
Faced the same issue,We have a custom block extending the search_api_sorts block as we needed a custom solution, but for the case the problem is the same.
So as a workaround we're rendering the block in the view (there are several ways ie views_block_area ,etc.) then it is rebuilt on the ajax request.