diff --git a/modules/oe_theme_helper/src/EventSubscriber/DefaultNodeMetadataEventSubscriber.php b/modules/oe_theme_helper/src/EventSubscriber/DefaultNodeMetadataEventSubscriber.php index 50109d1b45..87e5e4023a 100644 --- a/modules/oe_theme_helper/src/EventSubscriber/DefaultNodeMetadataEventSubscriber.php +++ b/modules/oe_theme_helper/src/EventSubscriber/DefaultNodeMetadataEventSubscriber.php @@ -75,7 +75,7 @@ public function getNode(NodeMetadataEvent $event): void { if ($this->currentRouteMatch->getRouteName() === 'entity.node.revision') { $node_revision = $this->currentRouteMatch->getParameter('node_revision'); - $node = $this->entityTypeManager->getStorage('node')->loadRevision($node_revision); + $node = $this->entityTypeManager->getStorage('node')->loadRevision($node_revision->getRevisionId()); $translated_node = $node ? $this->entityRepository->getTranslationFromContext($node) : NULL; $event->setNode($translated_node);