- Issue created by @emerham
- 🇺🇸United States emerham
Example:
The Module Responsive Preview checks if an entity has a canonical link and will then use that to build it's own URL for checking the page. This module's entity annotation defines that it should have a canonical url but that doesn't actually exist.
The website encountered an unexpected error. Try again later.
Symfony\Component\Routing\Exception\RouteNotFoundException: Route "entity.block_visibility_group.canonical" does not exist. in Drupal\Core\Routing\RouteProvider->getRouteByName() (line 206 of core/lib/Drupal/Core/Routing/RouteProvider.php).
Drupal\Core\Routing\UrlGenerator->getRoute('entity.block_visibility_group.canonical') (Line: 276)
Drupal\Core\Routing\UrlGenerator->generateFromRoute('entity.block_visibility_group.canonical', Array, Array, 1) (Line: 108)
Drupal\Core\Render\MetadataBubblingUrlGenerator->generateFromRoute('entity.block_visibility_group.canonical', Array, Array, ) (Line: 765)
Drupal\Core\Url->toString() (Line: 109)
Drupal\responsive_preview\ResponsivePreview->getPreviewUrl() (Line: 327)
Drupal\responsive_preview\ResponsivePreview->previewToolbar() (Line: 33) - Merge request !9Issue #3286296 by Project Update Bot, tyler36, Rishi Kulshreshtha, prudloff,... → (Merged) created by emerham
- Status changed to Needs review
11 months ago 1:53pm 23 January 2024 - 🇺🇸United States DamienMcKenna NH, USA
Thanks for putting that together. And yeah, I don't think this custom entity type should have a canonical URL either.
- Status changed to RTBC
11 months ago 3:31pm 24 January 2024 - 🇮🇳India ravi kant Jaipur
Thank you @emerham
The patch is working for me after apply below code and cleared cache."drupal/block_visibility_groups": { "Canonical Entity Link problems": "https://git.drupalcode.org/project/block_visibility_groups/-/merge_requests/9.patch" }
@ Maintainers - is possible to me this MR so we don't need to apply patch.
-
DamienMcKenna →
committed 600a5e4d on 2.0.x authored by
emerham →
Issue #3412434 by emerham, DamienMcKenna, a-fro: Canonical Entity Link...
-
DamienMcKenna →
committed 600a5e4d on 2.0.x authored by
emerham →
- Status changed to Fixed
5 months ago 5:34pm 2 August 2024 Automatically closed - issue fixed for 2 weeks with no activity.