Hi All!
First of all, love Algolia - so snappy and smart.
Down to business:
I am trying to apply a facet based off a URL query parameter. For example we could have the URL as https://example.com/news?type=Insight
, my expected reaction would be it would tick the Insight
option within the type
facet.
I’ve tried various options but nothing seems to be working, I have used the query parameter to find the relevant checkbox (<input type="checkbox" class="ais-RefinementList-checkbox" value="Insight">
) and made it checked manually with JavaScript - But looking at it, seems that a custom event is on the div which actually triggers the search with a filter.
Scoured the docs but couldn’t find out how to actually automatically trigger a Facet.
Anyone got any ideas? Happy to provide code if that helps.
Thanks,
Jamie