Skip to content

Commit e70c72e

Browse files
Marc Orcaubojanbogdanovic
authored andcommitted
Issue #500: Fix wrong iFrame preview URL on "Latest version" tab for translations.
1 parent 40e9f53 commit e70c72e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

modules/next/src/NextEntityTypeManager.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -74,7 +74,7 @@ public function getEntityFromRouteMatch(RouteMatchInterface $route_match): ?Enti
7474
}
7575

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

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

0 commit comments

Comments
 (0)