Rendered LI and links do not respect target attributes (blank or self)

Created on 26 December 2017, almost 7 years ago
Updated 24 January 2024, 11 months ago

In the Drupal Menu UI you can set the target attribute for menu items, to be self or blank, a new window.

However, in the we-megamenu-li.html.twig there does not seem to be a provision for rendering the "target" attribute. As such, even if I set a link in my menu to open in a new window, when that menu link is rendered by the MegaMenu that setting is not taken into account.

πŸ› Bug report
Status

Fixed

Component

Code

Created by

πŸ‡ΊπŸ‡ΈUnited States davidcsonka

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.

  • Hello,

    The issue is still there with the new version of the module...I created a patch that get the target field from the Drupal menu UI and set it as default value in the mega menu item.

Production build 0.71.5 2024