Skip to content

Commit

Permalink
Issue chapter-three#500: Fix wrong iFrame preview URL on "Latest vers…
Browse files Browse the repository at this point in the history
…ion" tab for translations.
  • Loading branch information
Marc Orcau committed May 23, 2023
1 parent a89fa51 commit 18d4bfb
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion modules/next/src/NextEntityTypeManager.php
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,7 @@ public function getEntityFromRouteMatch(RouteMatchInterface $route_match): ?Enti
}

if ($route_match->getRouteName() === 'entity.node.latest_version') {
$node_revision = $route_match->getParameter('node')->getRevisionId();
return $route_match->getParameter('node');
}

return $this->entityTypeManager->getStorage('node')->loadRevision($node_revision);
Expand Down

0 comments on commit 18d4bfb

Please sign in to comment.