Problem/Motivation
When used with another contrib module like responsive_preview, clicking Edit or Delete on a custom font triggers WSOD.
Symfony\Component\Routing\Exception\RouteNotFoundException: Route "entity.local_font_config_entity.canonical" does not exist. in Drupal\Core\Routing\RouteProvider->getRouteByName() (line 206 of core/lib/Drupal/Core/Routing/RouteProvider.php).
The local_fonts entity canonical link is defined but not a corresponding route. When another module calls something like $entity->toUrl() it fails.
Steps to reproduce
Use Drupal 10.2.4, fontyourface 4.0.0 and responsive_preview
Enable local_fonts module
Create and upload a local font
Click Edit or Delete
Proposed resolution
Remove the local_fonts entity canonical link.
Issue fork fontyourface-3427476
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
Comment #3
bwaindwain commentedcreated mr8
Comment #4
thomas kaisuka commentedKindly push this to the main release version 4.0. Still getting the WSOD on all my themes in Drupal 10
Comment #5
vlad.dancerThe fix works and resolve this issue.
Comment #8
neslee canil pinto