Skip to main content
drupalreleases

Use direct release data with your AI assistant.

Learn more

Unique Alias Checker

Security covered Under active development 131 sites

This module prevents duplicate URL aliases by checking for potential conflicts before saving content. It stops users from accidentally creating the same alias multiple times, ensuring that links remain consistent.

This module was created to prevent content managers from accidentally triggering pathauto's handling of duplicate url aliases.

Basically, imagine the following scenario:

  1. An entity type is set up with a pathauto pattern ending in /[node:title]
  2. A content manager is asked to create an entity of this type with the following title: "Example Title". They publish the entity and the following url alias is generated /example-title
  3. Two years later, another content manager is asked to create another node of the same content type with the same title, "Example Title". The content manager publishes the entity as requested, however this time the generated url is /example-title-0.
  4. Nobody notices the issue with the url alias, and premade email blasts go out instructing users to visit /example-title. Sadness ensues.

This module creates a form validator capable of detecting if a duplicate url alias would be generated on save, and if so, fire an error message and prevent save.

Supported entities:

  • Nodes
  • Taxonomy Terms

Bundle exclude

This module now supports excluding bundles from form validation via its settings page.

Manual aliases

As of 1.4.x, this module allows content managers to bypass validation if pathauto's "Generate automatic URL alias" box is unchecked in the entity form.

This allows for manual one-off aliases to be created without having to alter the content or pathauto pattern.

Drupal 8–11

Ask your assistant about Unique Alias Checker

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

Required by

Tracked projects that depend on this one

No tracked projects depend on this one yet.

Activity

Tracked releases
12
Tracked since
Mar 2023
Latest release
6 months ago
Releases (12 mo)
1 ▲ from 0
Maintenance
Active

Release Timeline

Releases

Version Type Core PHP Release date
1.1.0 Stable 8–9 Mar 24, 2023
1.1.x-dev Dev 8–10 Mar 24, 2023