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.
By sprite on
Here is a token array that will generate a complete relative URL for a node, its associated content category taxonomy term and all of the term's parents, and taxonomy vocabulary name.
The {node:field-taxo-node-category} portions below are variable, based on the name the site builder gives to the term reference field in their nodes.
[node:field-taxo-node-category:vocabulary:name]/[node:field-taxo-node-category:parents:join-path]/[node:field-taxo-node-category:name]/[node:title]
This token array is useful for building URL aliases with taxonomy parents in the URL.
This token array can also be used with the crumbs module to define the breadcrumbs path for nodes with taxonomy terms in their URL as well as in other site contexts.