v1/web/modules/contrib/facets_short_pretty_paths/README.md

1.3 KiB

Shortens Facets Pretty Paths:

  • Removes the term ids from the term aliases. If a machine name is not available yet, there is a fallback to the default term coder, with the term id, to guarantee unicity.
  • Multiple values (Facet items) are delimited by a dot, the Facet alias is present only once.

So we have e.g.: /color/black.yellow.red instead of /color/black-1/color/yellow-2/color/red-3

Dependencies

Configuration

To comply with the previous required dependency, the default taxonomy field name used for the path resolution is the base field definition from Taxonomy Machine Name: machine_name.

If you wish to use another one, it can be overridden as $settings['facets_short_pretty_paths_field_name'] = 'field_name';

A contributed solution has been favoured to a patch as

Roadmap

  • Make the facet items delimiter configurable