For the complete documentation index, see llms.txt. This page is also available as Markdown.

Category URLs

Map SEO-friendly category URLs to FactFinder search requests.

This guide covers how to build and use more SEO friendly URLs like https://www.your-shop.com/c/shoes/sneakers with FactFinder Web Components.

What we need:

  • Disable the URL parameters

  • Map the URL to a FactFinder request

Parameter handling

<ff-communication use-url-parameters="false"></ff-communication>

Disables the usage of HTTP parameters entirely.

<ff-communication only-search-params></ff-communication>

only-search-params provides a pre-configured set of search related parameters which then are pushed to the URL, i.e. query, filter, sort, page and productsPerPage. This can be used in conjunction with the attribute parameter-whitelist.

<ff-communication parameter-whitelist="page,query"></ff-communication>

Exactly define which parameters are going to appear in the browser URL.

Map URL to a request

The mapping is done on server side via an additional ff-communication attribute called add-params.

add-params takes a comma-separated list of HTTP parameters which will be added to the FactFinder request. Consider the following configuration:

<ff-communication url="https://fact-finder.de/your-ff" 
                  channel="en"
                  version="ng"
                  api="v5"
                  add-params="param1=ONE,param2=TWO"
                  search-immediate
                  default-query="shoes"></ff-communication>

This will result in a request that will look like: https://fact-finder.de/your-ff/en?query=shoes&param1=ONE&param2=TWO.

A typical use case for this feature is adding a category filter to a page, returning all products that are associated with a given category.

This way FactFinder will be used for product lists, facets, sorting options, paging, recommendations, etc. while letting your shop system take care of URL handling and CMS content.

Generating add-params values

This is a very individual case and depends on the shop system you are using and on your data.

In general, filter parameters should be generated in a similar way as you do for the data export. The FactFinder filter parameter pattern is:

Filter parameter patterns
FF 7.x
FF NG

filter{FIELD_NAME}={VALUE}

filter={FIELD_NAME}:{VALUE}

e.g. filterColor=blue

e.g. filter=Color:blue

We recommend using our ff-asn demo and the browser's dev tools to take a detailed look at parameter generation.

For our existing modules please refer to:

Last updated

Was this helpful?