Enable the redirect module then delete a font display. It generates this error:

The website encountered an unexpected error. Please try again later.

Symfony\Component\Routing\Exception\RouteNotFoundException: Route "entity.font_display.canonical" does not exist. in Drupal\Core\Routing\RouteProvider->getRouteByName() (line 190 of core/lib/Drupal/Core/Routing/RouteProvider.php).

The underlying cause is a bug in FontDisplay.php @ConfigEntityType

 *   links = {
 *     "canonical" = "/admin/appearance/font/font_display/{font_display}",

However that route does not exist because there is no setting for handlers["form"]["default"]. Delete the line for canonical and it works.

CommentFileSizeAuthor
#2 fontyourface.delete.2943590-2.patch589 bytesadamps

Comments

AdamPS created an issue. See original summary.

adamps’s picture

Status: Active » Needs review
StatusFileSize
new589 bytes
neslee canil pinto’s picture

Status: Needs review » Fixed
adamps’s picture

Great thanks

Status: Fixed » Closed (fixed)

Automatically closed - issue fixed for 2 weeks with no activity.