Add support for menu items created from the Menu admin page

Created on 14 December 2023, 7 months ago

Problem/Motivation

I have a site in which a node appears more than once in a menu. Therefore, the second time the node appears in a menu it needs to be added via the Menu admin form, rather than the node form.

Currently menu links need to be created inside the node, so they have the "entity:" uri prefix.
"internal:" is not currently supported.

Steps to reproduce

  1. Create a menu and add a node to it from its node edit form.
  2. Add the same node to a different place within the same menu, from the menu edit form.

Proposed resolution

Add support for "internal:" menu items.

Remaining tasks

  1. ❌ Create merge request
  2. ❌ Manually test the feature
  3. ❌ Write test coverage

User interface changes

None

API changes

TBD

Data model changes

TBD

✨ Feature request
Status

Active

Version

3.0

Component

Code

Created by

πŸ‡ΊπŸ‡ΈUnited States cedewey Denver, CO

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

Comments & Activities

  • Issue created by @cedewey
  • πŸ‡ΊπŸ‡ΈUnited States cedewey Denver, CO
  • πŸ‡ΊπŸ‡ΈUnited States cedewey Denver, CO
  • πŸ‡ΊπŸ‡ΈUnited States cedewey Denver, CO

    I was pleasantly surprised to find that menu items added through the menu admin form did show up in the Views block I configured with the Menu Children filter.

    I assumed it wouldn't work based off this sentence on the project page under the "Limitations" section,

    Also, the menu links need to be created inside the node, so they have the "entity:" uri prefix. "internal:" is NOT currently supported.

    So does that mean this does indeed work and that limitation is no longer there? Or is that limitation on the project page describing something else?

Production build 0.69.0 2024