Closed (works as designed)
Project:
Pathauto
Version:
7.x-1.0
Component:
Tokens
Priority:
Minor
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
6 Dec 2011 at 15:20 UTC
Updated:
9 Dec 2011 at 02:27 UTC
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
Comment #1
dave reidThis 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.