Facets Short Pretty Paths
Shortens Facets Pretty Paths aliases.
Before considering to install this module, review this issue from Facets Pretty Paths #3308521: Query params more SEO friendly
- 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
Configuration
- Select the Short pretty paths URL processor for the Facet source
- Select the Taxonomy term machine name pretty paths coder for the Facet if you use this module, or add a field to the vocabulary and declare it in settings.php
$settings['facets_short_pretty_paths_field_name'] = 'field_name';
Dependencies
- Facets Pretty Paths
- Optional (since 1.0.0-alpha3) Taxonomy Machine Name
Known limitation
The Taxonomy Machine Name module provides uniqueness for terms from the same vocabulary.
Also there is a RTBC issue about Machine names are not generated after enabling module
Related Facet Pretty Paths issues
A contributed solution has been favoured to a patch as:
we introduce a potential dependency to Taxonomy Machine Name (https://www.drupal.org/project/facets_pretty_paths/issues/3024640)
it requires to override the active_filters service (https://www.drupal.org/project/facets_pretty_paths/issues/2878617)
Depends on
Dependencies of the latest stable release
No dependencies recorded for this project.
Required by
Tracked projects that depend on this one
No tracked projects depend on this one yet.
Activity
Releases
| Version | Type | Core | Notes | Release date | |
|---|---|---|---|---|---|
| 1.0.0-alpha5 | Pre-release | Oct 25, 2024 |