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

cpliakas’s picture

Hi 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

cpliakas’s picture

Status: Active » Fixed

Assuming fixed after weeks of inactivity.

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for 2 weeks with no activity.