Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
Hi
I'm using taxonomies and pathauto to generate url paths to the taxonomy terms. The terms have a hierarchy for example
- Library
-
- FAQ
-
- policy
so the URL should be /library/faq/policy
but I'm getting /faq/library/policy
I using [term:parent:url:path]/[term:name] but its the same with the other options
This is a fresh install of the current version of Drupal (24hr old)
is there a path or work around for this issue?
thanks
Comments
Comment #1
chaloum CreditAttribution: chaloum commentedI found the issue, it was the weight setting for Library which was set to 1 and the others are set to 0
That being said it dosent seem logical that this would happen as I wouldn't have thought the weight would override the hierarchy as set i the taxonomy, for example:
the numbers represent the weight and the list represents the hierarchy
I would expect the url for sub-item-one to look like
/first-main-item/sub-item-one because sub-item-one is not at the parent level so its weight should be constrained by it ls level and not override the parents weights.
but the order/weight of the parents would be Second-main-item then first-main-item as Second-main-item's weight and first-main-item are at the same level but Second-main-item would come fist as its weight is set to 0
thanks