I just installed this patch, with the intention of displaying facet blocks on any page that has a search, for instance, a single result search_api Views block that displays in a small spot on the homepage. The end result I am trying to achieve is that the facet blocks on the homepage will redirect to a separate Views path, e.g. /results?query rather than /node?query, or whatever the path happens to be. How can I specify the path that the facets link to?
Comments
Comment #1
cpliakas commentedHi webavant.
How Facet API works is that the backend module determines which path to send the facets to though a method that it implements in the adapter. Specifically, the SearchApiFacetapiAdapter::getSearchPath() method is the code snippet that performs this logic. So in theory, the facets should already link to the appropriate search page based on the search being executed.
Thanks,
Chris
Comment #2
cpliakas commentedAssuming fixed after weeks of inactivity.