Problem adding link to menu

Created on 18 December 2021, almost 3 years ago
Updated 19 June 2024, 3 months ago

I wanted to add a link to the menu via Structure -> menu -> my_menu -> add link

When I clicked on add link, the following message appeared:
Symfony \ Component \ Routing \ Exception \ InvalidParameterException: Parameter "menus" for route "menu_select.menu_select_autocomplete" must match "[^ /] ++" ("" given) to generate a corresponding URL. in Drupal \ Core \ Routing \ UrlGenerator-> doGenerate () (line 203 of core / lib / Drupal / Core / Routing / UrlGenerator.php).

I am working on Drupal 9.3 and using the Domains module and Domain Menus for Domains.

Of course, without Domain Menus for Domains, everything is fine. Additionally, when I commented line 79 in the MenuSelectTree.php file, I could add a link, but without the possibility of selecting the parent page.

🐛 Bug report
Status

Active

Version

2.0

Component

Code

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.

  • 🇨🇦Canada mahde Vancouver

    I am facing this issue as well when I try to edit a page while using Masquerade role module. I am not able to edit the page because of this error.

  • 🇨🇦Canada mahde Vancouver

    I just upgraded to version 2.0.0-rc3 and it works fine now!

  • 🇪🇸Spain fran seva

    I can reproduce this error in the following context:
    * menu_select is enabled
    * menu_select is configured to use search input
    * domain_menu module is enable

    To reproduce the error
    * Go to any domain menu
    * Add a new link

Production build 0.71.5 2024