diff --git a/modules/tide_site_preview/src/Plugin/Block/PreviewLinksBlock.php b/modules/tide_site_preview/src/Plugin/Block/PreviewLinksBlock.php index 70c81058..40a81167 100644 --- a/modules/tide_site_preview/src/Plugin/Block/PreviewLinksBlock.php +++ b/modules/tide_site_preview/src/Plugin/Block/PreviewLinksBlock.php @@ -233,9 +233,7 @@ protected function getCurrentNode() : ?NodeInterface { $node = $this->routeMatch->getParameter('node'); if ($route_name === 'entity.node.revision') { try { - $vid = $this->routeMatch->getParameter('node_revision'); - $node = $this->entityTypeManager->getStorage('node') - ->loadRevision($vid); + $node = $this->routeMatch->getParameter('node_revision'); } catch (Exception $exception) { watchdog_exception('tide_site_preview', $exception);