Fix InvalidParameterException on component_type URL generation

Created on 6 January 2025, about 2 months ago

Problem/Motivation

I get the following error.

The website encountered an unexpected error. Try again later.

Symfony\Component\Routing\Exception\InvalidParameterException: Parameter "component_type" for route "dab.component_type_list" must match "[^/]++" ("Alerts / Banner" given) to generate a corresponding URL. in Drupal\Core\Routing\UrlGenerator->doGenerate() (line 209 of core/lib/Drupal/Core/Routing/UrlGenerator.php).
Drupal\Core\Routing\UrlGenerator->getInternalPathFromRoute() (Line: 138)
Drupal\Core\Routing\UrlGenerator->getPathFromRoute() (Line: 71)
Drupal\Core\Render\MetadataBubblingUrlGenerator->getPathFromRoute() (Line: 808)

Steps to reproduce

This occurs when DAB is installed with UI Suite USWDS β†’ .

composer require drupal/ui_suite_uswds
drush en layout_options ui_icons_patterns
drush then ui_suite_uswds -y
drush config:set system.theme default ui_suite_uswds
composer require --dev drupal/dab
drush en dab

Proposed resolution

This seems to stem from an expectation about how group is formatted in a *.component.yml implementation.

πŸ› Bug report
Status

Active

Version

1.0

Component

Code

Created by

πŸ‡ΊπŸ‡ΈUnited States jcandan

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

Comments & Activities

Production build 0.71.5 2024