Drupal is a registered trademark of Dries Buytaert
drupal 11.3.7 Update released for Drupal core (11.3.7)! drupal 11.2.11 Update released for Drupal core (11.2.11)! drupal 10.6.7 Update released for Drupal core (10.6.7)! drupal 10.5.9 Update released for Drupal core (10.5.9)! cms 2.1.1 Update released for Drupal core (2.1.1)! drupal 11.3.6 Update released for Drupal core (11.3.6)! drupal 10.6.6 Update released for Drupal core (10.6.6)! cms 2.1.0 Update released for Drupal core (2.1.0)! bootstrap 8.x-3.40 Minor update available for theme bootstrap (8.x-3.40). menu_link_attributes 8.x-1.7 Minor update available for module menu_link_attributes (8.x-1.7). eca 3.1.1 Minor update available for module eca (3.1.1). layout_paragraphs 2.1.3 Minor update available for module layout_paragraphs (2.1.3). ai 1.3.3 Minor update available for module ai (1.3.3). ai 1.2.14 Minor update available for module ai (1.2.14). node_revision_delete 2.0.3 Minor update available for module node_revision_delete (2.0.3). moderated_content_bulk_publish 2.0.52 Minor update available for module moderated_content_bulk_publish (2.0.52). klaro 3.0.10 Minor update available for module klaro (3.0.10). klaro 3.0.9 Minor update available for module klaro (3.0.9). layout_paragraphs 2.1.2 Minor update available for module layout_paragraphs (2.1.2). geofield_map 11.1.8 Minor update available for module geofield_map (11.1.8).

url_friendly_options

1,389 sites Security covered
View on drupal.org

This module enforces that all option list fields have keys that are composed only of alpha-numeric characters and hyphens.

For example the list below is a valid list:

first-value|First value
second-value|Second value

While this list isn't allowed:

first_value|First value
second value!|Second value!

This means that if you end up needing to use this field as a contextual filter in a view, the keys are already URL-friendly.

Notes

1) This module will not change existing values. However, it won't be possible to add new values to the list if there are non-compliant pre-existing keys, since the form won't validate. A status report message will display an error if there are any keys that fail validation.

2) If there are exceptions that need to bypass this module's validation, developers can implement hook_url_friendly_options_bypass_field_validation() and mark a particular field to be skipped.

Activity

Total releases
3
First release
May 2025
Latest release
10 months ago
Release cadence
6 days
Stability
67% stable

Release Timeline

Releases

Version Type Release date
2.0.1 Stable Jun 5, 2025
2.0.0 Stable May 28, 2025
2.0.x-dev Dev May 24, 2025