Skip to main content
drupalreleases

Use direct release data with your AI assistant.

Learn more

Facets Short Pretty Paths

No security coverage Maintenance fixes only 79 sites

Part of the Facets ecosystem · 26 projects

This module shortens the URL aliases generated by Facets Pretty Paths by removing term IDs and consolidating multiple facet values. It creates cleaner, more SEO-friendly URLs like `/color/black.yellow.red` instead of repeating the facet name for each value.

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

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)

Ask your assistant about Facets Short Pretty Paths

Check compatibility with your Drupal and PHP version, maintenance and security coverage, from current release data. How it works

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

Tracked releases
3
Tracked since
Feb 2023
Latest release
1 year ago
Releases (12 mo)
0 ▼ from 1
Maintenance
Slowing

Release Timeline

Releases

Version Type Core PHP Release date
1.0.0-alpha5 Pre-release 8–11 Oct 25, 2024
1.0.0-alpha4 Pre-release 8–10 Sep 12, 2023
1.0.0-alpha3 Pre-release 8–10 Feb 16, 2023