Skip to content
This repository has been archived by the owner on Sep 30, 2024. It is now read-only.

Fixed preview link rendering on node revision. #122

Open
wants to merge 1 commit into
base: develop
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down