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.

Comments

stBorchert created an issue. See original summary.

stborchert’s picture

Issue summary: View changes
Status: Active » Needs review
StatusFileSize
new594 bytes