The Drupal Path module matches only full URLs when creating SEO-friendly aliases. This module extends that behavior by also matching known sub-paths and replacing them with their respective alias.
For example, if user/1 is aliased to users/admin, this module rewrites the link to the user contact page user/1/contact to use the aliased URL users/admin/contact instead. This also includes Views URLs taking a node as argument (e.g. node/%/yourview), in short, every URL that is based on, or extends, an existing alias. In combination with the Pathauto module it is possible to get rid of all remaining exposed internal non-administrative URLs.
Requirements
None
Known Issues
- Drupal 7: While Sub-pathauto works when drupal_get_normal_path() is called, if drupal_get_path_alias() is called, the hook to alter URLs is not invoked. Functionality that uses this function to compare things like page visibility settings will not match the sub-path processed URL. This is due to core bug #1248626: drupal_get_path_alias() does not invoke url alter hook while drupal_get_normal_path() does.
Credits
Original module (Subpath URL alias) written by Stefan M. Kudwien (smk-ka).
Recommended modules
Similar modules
- Extended path aliases: Drupal 7 only and requires installing runkit PECL module or patching core.
Project information
- Minimally maintained
Maintainers monitor issues, but fast responses are not guaranteed. - Maintenance fixes only
Considered feature-complete by its maintainers. - Module categories: Administration Tools
- 11,995 sites report using this module
- Created by Dave Reid on , updated
- Stable releases for this project are covered by the security advisory policy.
Look for the shield icon below.
Releases
Drupal 10 support, better language and redirect module support
Development version: 8.x-1.x-dev updated 16 Feb 2023 at 17:58 UTC
Development version: 7.x-1.x-dev updated 11 Aug 2011 at 12:25 UTC