The button and no link routes and attributes are not retrieved from the url object in the menu_footer pattern.

Created on 24 May 2024, about 1 month ago
Updated 10 June 2024, 18 days ago

Hello,

Problem/Motivation

Hello,
The menu footer pattern doesn't support elements from Drupal :

  • Tokens ( <button> and <nolink> returns an empty url with the approach $item[‘url’]->toString(); (cause by #3448313 🐛 [1.0.0-rc2] The menu_footer pattern hook causes a 500 error Fixed , which is annoying because you can no longer distinguish between elements.
  • Attributes defined for links in the administration space are not retrieved (e.g. class).

Steps to reproduce

  1. Create a menu element in menu associated with the pattern footer_menu and enter the token in the url field.
  2. Also add a class to any menu element.
  3. Save

The token is not detected and only displays a span
Classes added to the menu link are not supported.

Proposed resolution

Offer support for button and no link tokens and allow existing attributes to be added to the menu item.

🐛 Bug report
Status

Needs work

Version

1.0

Component

Code

Created by

🇷🇪Réunion Martygraphie Saint-Denis (Réunion)

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

Merge Requests

Comments & Activities

Production build 0.69.0 2024