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 node/1 is aliased to content/alias, this module rewrites the link to the node edit page node/1/edit to use the aliased URL content/alias/edit instead. This also includes Views URLs taking a node as argument (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 URLs.

The module has moved to the Sub-pathauto module for Drupal 7 and beyond. It can be downloaded at http://drupal.org/project/subpathauto.

Dependencies

  • Path (core)
  • URL Alter (read installation note below)
  • Optional, but highly recommended: Pathauto

Installation

This module requires URL Alter version 1.2 or later. For complete installation instructions see current README.

IMPORTANT: If you had set up a custom_url_rewrite*) function in your settings.php and NOT used URL Alter before, you HAVE TO modify your code after installation. Please consult the URL Alter documentation for more information.

*) If you don't know what a custom_url_rewrite is you may safely ignore this note.

Compatibility

Global Redirect is known to cause issues: #346911: Redirect Loop and custom_url_rewrite ignored. Please help test the patch.

Credits

Written by Stefan M. Kudwien (smk-ka).

Initial development sponsored by UNLEASHED MIND
Specialized in consulting and development of Drupal powered sites, our services include installation, development, theming, customization, and hosting to get you started.

Project Information

Downloads