diff --git a/core/lib/Drupal/Core/Entity/Routing/DefaultHtmlRouteProvider.php b/core/lib/Drupal/Core/Entity/Routing/DefaultHtmlRouteProvider.php index 5d40090..440d240 100644 --- a/core/lib/Drupal/Core/Entity/Routing/DefaultHtmlRouteProvider.php +++ b/core/lib/Drupal/Core/Entity/Routing/DefaultHtmlRouteProvider.php @@ -249,7 +249,7 @@ protected function getCanonicalRoute(EntityTypeInterface $entity_type) { protected function getUuidRoute(EntityTypeInterface $entity_type) { if ($entity_type->getKey('uuid') && $entity_type->hasViewBuilderClass()) { $entity_type_id = $entity_type->id(); - $route = new Route('/' . $entity_type_id . '/{' . $entity_type_id . '}'); + $route = new Route($entity_type->getLinkTemplate('uuid')); $route ->addDefaults([ '_entity_view' => $entity_type_id . '.full',