I have a taxonomy vocabulary which will only ever contain 2 level deep hierarchy.

I need the url to be just [vocabulary]/[term] for any parent term.

But for a child term I need it to be the following


Is this possible with a pathauto token? If not, is there another solution to this?

1 Answer 1


You can use pathauto token like this.


enter image description here

  • Thanks, what will happen if the parent does not exist?
    – user43161
    Nov 16, 2016 at 9:40
  • If parent does not exist then vocabulary/term name Nov 16, 2016 at 9:51
  • 1
    You missed a "/" above
    – user43161
    Nov 16, 2016 at 11:20
  • Sorry But I added screenshot. Nov 16, 2016 at 11:24
  • I just wanted to say because for future people might get confused. Thanks
    – user43161
    Nov 16, 2016 at 12:03

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.