I had the same problem as #1354244: [node:menu-link:parent:parent:parent:parent:url:path]/[node:title] and found the fix at answer #1
However this gave me another problem and thus this bug report:

When you create a menu item and attach this to a newer (= higher NID) menu item as a child, the alias can't be generated with [node:menu-link:parent:url:path] and will return node/nid instead of the parent alias.

Example:

I have 3 pages:
products - node/12
product_group - node/11
product - node/13

I expect the following aliases:
/products
/products/product_group
/products/products_group/product

I get the following aliases:
/products
/node/12/product_group
/node/12/product_group/product

Comments

dave reid’s picture

Status: Active » Closed (works as designed)

This is by design. The ordering happens by NID ascending for the batch processing to work and since it assumes that you'd have created your root pages before your sub-pages.

You might be interested in #810294: Add an 'URL alias update queue' for entities associated with an updated entity which potentially could automatically queue up any nodes that are sub-links of the currently aliased node.