Problem/Motivation
Using a combination of Drupal 8.4.4 and the latest development version of Alinks leads to a WSOD on our site. The error_log shows this message:
Symfony\Component\Routing\Exception\MissingMandatoryParametersException: Some mandatory parameters are missing ("alink_keyword") to generate a URL for route "entity.alink_keyword.edit_form". in Drupal\Core\Routing\UrlGenerator->doGenerate().
Research show, the module defines 2 menu link tasks using "entity.alink_keyword.collection" as base route. Drupal tries to apply the parameters defined in the base route to the task route, which fails because the collection does not define "alink_keyword".
Proposed resolution
Use "entity.alink_keyword.edit-form" instead of "entity.alink_keyword.collection". As a bonus this will display both tabs when editing an alink-entity.
Remaining tasks
Add patch.
User interface changes
Tabs to edit/delete on alink edit form are displayed.
| Comment | File | Size | Author |
|---|---|---|---|
| #2 | alinks-fix_base_route_for_tasks-2939805-2.patch | 594 bytes | stborchert |
Comments
Comment #2
stborchert