Problem creating pathauto joined paths

Created on 11 September 2017, almost 7 years ago
Updated 22 February 2024, 4 months ago

As opposed to Core menu system, menu_link is not using the table "menu_link_content_data" to store information, which poses a problem when trying to use pathauto with the token "[node:menu-link:parents:join-path]" to generate the path for menu items.
I noticed this on a multilingual site, where menu_ui always gets the "original" node menu path, instead of the current node menu path.

How to reproduce:
- create a multilingual configuration (2 languages is enough)
- set [node:menu-link:parents:join-path] path pattern
- create 2 menus (one for each language)
- create 1 root node, translate it and add each translation to the corresponding menu. It's important that the title is different in order to observe the problem (ex: /root-fr and /root-en)
- create 1 child node, translate it and add it to the root node on each language.
Result: one of the child nodes (the translation) will have the wrong path (/root-fr/child-fr and /root-fr/child-en)

The solution would be to patch menu_ui, make menu_link use "menu_link_content_data" or create a menu_link token.

πŸ› Bug report
Status

Needs review

Version

2.0

Component

Code

Created by

πŸ‡΅πŸ‡ΉPortugal rutiolma

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.

Production build 0.69.0 2024