0

We have added facet_categories to our Articles page which is a view page with the path url of /articles. Facet_categories is setup to be the Articles->Category field (which is a taxonomy term).

Goal:

  1. Prefilter the facets based on the URL on a View page.

Expected Scenarios:

  • If i navigate to /articles/cloud, then the facet should filter to Category = Cloud.
  • If I navigate to /articles/security, then the facet should filter to Category = Security.

Question:

  1. How can we generate a friendly URL such as /articles/cloud so that it prefilters the facet by URL?

What we tried, but did not work. It returns a page not found when we navigate to /articles/security/

  1. Add URL alias by navigating to /admin/config/search/path
  2. Clicked Add Alias
  3. Set existing path to /articles?f%5B0%5D=facet_categories%3Asecurity
  4. Set Path alias to /articles/security/

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Browse other questions tagged or ask your own question.