Pathauto Menu Link

Component ID

2017343

Component name

Pathauto Menu Link

Component type

module

Maintenance status

Development status

Component security advisory coverage

covered

Downloads

8651

Component created

Component changed

Component body

If you use parent menu links to generate paths within Pathauto, you'll notice that the resulting path is only updated when a node is saved, which means that if you simply move a menu link item within a menu so that it has a different parent, the path is immediately out of date and no longer correct.

This module fixes that by forcing an update of the Pathauto-generated path when a menu link item has been updated, based of the link's new position within the menu tree.

Should this be in the Pathauto module itself? Maybe.

Recommendations

Also install the Redirect module, and enable it to automatically create a redirect when a path is changed. This would prevent users from getting a 404 page if a menu item has moved, and therefore the path to the node changed.