This module prevents duplicate or nearly duplicate URL aliases from being created, ensuring SEO-friendly and unique paths. It also provides an audit report to identify existing alias issues.
Path Alias Collision Guard helps keep URL aliases unique and SEO-safe. It stops new colliding or near-duplicate aliases when they are saved and gives administrators tools to find existing problems after migrations, bulk imports, or Pathauto runs.
What it does
- Blocks collisions on save — validation runs for aliases created or updated via the UI, REST/API, Pathauto, and Migrate.
- Normalizes aliases for comparison — trims whitespace, collapses duplicate slashes, and supports optional case-insensitive matching so
/Aboutand/aboutcan be treated as duplicates when configured. - Audit report — review grouped collisions in the admin UI.
- Drush integration —
drush path-alias-collision-guard:auditfor scripts and CI; exits with code1when collision groups exist.
Requirements
- Drupal 10.3+ or 11+
- Drupal core Path Alias module
Configuration
Settings: /admin/config/search/path-alias-collision-guard
Audit report: /admin/config/search/path-alias-collision-guard/audit
Permissions
- Administer path alias collision guard — change module settings
- View path alias collision report — view the audit report
Relationship to other modules
This module does not replace Path, Pathauto, or Redirect. It adds validation and auditing focused on duplicate and near-duplicate path aliases.
License: GPL-2.0-or-later
Ask your assistant about Path Alias Collision Guard
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
- path_alias Drupal core
Required by
Tracked projects that depend on this one
No tracked projects depend on this one yet.
Activity
Releases
| Version | Type | Core | PHP | Release date | |
|---|---|---|---|---|---|
| 1.0.0 | Stable | 10–11 | Sep 30, 2026 |