Invalid token when trying to set pattern based on menu structure

Created on 17 May 2021, almost 4 years ago
Updated 13 October 2023, over 1 year ago

Problem/Motivation

For one of my content types, I'm trying to add a pattern based on menu structure. From what I've read, the following pattern should work:

/[node:menu-link:parent:url:path]/[node:title]

However when trying to save the the pattern, it fails: Path pattern is using the following invalid tokens: [node:menu-link:parent:url:path].

I tried this with the default "Safe tokens" settings, and then tried adding "menu-link" and "parent" to no avail:

alias, path, join-path, login-url, url, url-brief, menu-link, parent

Perhaps I'm missing something? Is another module required? This is the first time I've tried to leverage Pathauto with a menu structure. The site is operating on Drupal 9.1.8.

Thanks in advance!

💬 Support request
Status

Active

Version

1.8

Component

Code

Created by

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Comments & Activities

Not all content is available!

It's likely this issue predates Contrib.social: some issue and comment data are missing.

  • 🇮🇳India vaibhav.addweb

    "I checked, reproduced error & as you mention "URL pattern" in the shared image that I created with this [node:menu-link:parents:join-path]/[node: title] token so try with this token & don't forget to clear the cache."

Production build 0.71.5 2024