Internal unrouted URLs results in error

Created on 31 May 2023, about 1 year ago
Updated 2 October 2023, 9 months ago

Problem/Motivation

When an internal link that is not an entity is added to the menu using "internal:" as URL, it results in "UnexpectedValueException: External URLs do not have internal route parameters. in Drupal\Core\Url->getRouteParameters()"

Steps to reproduce

Enable "admin_toolbar_links_access_filter" module on Drupal 9.5.9. Add a menu link to one of the menu item using a custom module and the url being "internal:" on your custom module's liks.menu.yml

Proposed resolution

Check if the URL is routed before retrieving routed parameters.

Remaining tasks

User interface changes

API changes

Data model changes

πŸ› Bug report
Status

Fixed

Version

3.4

Component

Code

Created by

πŸ‡ΊπŸ‡ΈUnited States dsrikanth

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

Comments & Activities

Production build 0.69.0 2024