Drupal is a registered trademark of Dries Buytaert
Release: Drupal 11.4.5 Update released for Drupal core (11.4.5)! Release: Drupal 10.6.15 Update released for Drupal core (10.6.15)! Release: Superfish Dropdown Menu 8.x-1.15 Minor update available for module superfish (8.x-1.15). Release: Leaflet 10.4.10 Minor update available for module leaflet (10.4.10). Release: Raven: Sentry Integration 7.5.1 Minor update available for module raven (7.5.1). Release: htmLawed 8.x-3.8 Minor update available for module htmlawed (8.x-3.8). Release: Raven: Sentry Integration 7.5.0 Minor update available for module raven (7.5.0). Module Revived: Media Library Form API Element 2.1.5 Module media_library_form_element updated after 10 months of inactivity (2.1.5). Release: Acquia Content Optimization 2.1.0-alpha1 First alpha version released for module conductor (2.1.0-alpha1). Usage Milestone: Manage display Module manage_display crossed 1,000 active installs.

Alias Hierarchy

8 sites No security coverage
View on drupal.org

This module automatically regenerates URL aliases for nodes and their children to match the structure of the menu system. It ensures aliases are updated when nodes are moved in the menu or when changes are made to menu items. The module also allows for custom alias strings, falling back to menu titles or node titles if needed.

Alias Hierarchy regenerates a node's URL/path alias and then recursively updates any children nodes. The module is also triggered when changes are made to menu items.

The Alias Hierarchy module makes use of the Pathauto module and extends its functionality. The idea behind the module is that we want node aliases to match the menu system's structure. This can be accomplished with Pathauto alone, however, there are scenarios where aliases do not get updated correctly to match changes made to a node.

Alias Hierarchy addresses those scenarios by implementing the following:

1) regenerate a node's alias if the node is moved in the menu system.

2) regenerate children aliases after editing a node or moving a node in the menu system.

3) allow for a 'custom alias' field, where users are able to change the last string in a node's alias.

The alias will be generated first using the custom alias. If it is blank, the menu title will be used. If that is blank, the node title is used as a default.

Requirements

Pathauto

Configuration

D9

See README.md.

D7

Navigate to Configuration -> Search and metadata -> URL aliases -> Patterns tab.

For the content type(s) that you want Alias Hierarchy to apply to, change the pathauto pattern to "[node:menu-link:parents:join-path]/[node:menu-link]".

D6

Navigate to Structure -> URL Aliases -> Automated Alias Settings.

For the content type(s) that you want Alias Hierarchy to apply to, change the pathauto pattern to [menupath-raw].

Activity

Tracked releases
1
Tracked since
Dec 2024
Latest release
1 year ago
Releases (12 mo)
0 ▼ from 1
Maintenance
Dormant

Releases

Version Type Release date
1.0.0-rc8 Pre-release Dec 12, 2024