Token [node:menu-link:parent-alias] does not handle hardcoded internal urls that redirects to another page

Created on 19 June 2023, over 1 year ago
Updated 21 May 2024, 7 months ago

Problem/Motivation

The token [node:menu-link:parent-alias] breaks when the url of the parent is hardcoded.

Steps to reproduce

  • Create a page "Page 1" with a menu link. It will be a parent page
  • Create a new page "Page 2" with a menu link (parent menu item should be "Page 1")
  • Go to main menu and edit "Page 2" menu link to the hardcoded path (e.g. /page-1/page-2) instead of referencing the node (internal and extrernal urls are supported)
  • Go to the "Page 2" and change the title so url alias is updated.
  • Create a new page "Page 3" with a menu link (parent menu item should be "Page 2")
  • Notice that breakcrums does not contain "Page 2"

Proposed resolution

Update the token so it supports hardcoded paths.

πŸ› Bug report
Status

Fixed

Version

6.1

Component

Code

Created by

πŸ‡§πŸ‡ͺBelgium ducktape

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

Merge Requests

Comments & Activities

Production build 0.71.5 2024