Problem/Motivation

In the related issue a link is created in code, but it forgets to pass the route_parameters. So everything works fine for routes without parameters, but when route_parameters are needed, there are errors about missing required parameters (for example, a menu-link to the entity.node.canonical route)

Proposed resolution

Also pass the route_parameters in getUrlObject

Command icon Show commands

Start within a Git clone of the project using the version control instructions.

Or, if you do not have SSH keys set up on git.drupalcode.org:

Comments

spadxiii created an issue. See original summary.

spadxiii’s picture

Status: Active » Needs review

Added my fix in the merge request