Skip to content

Commit dfa340d

Browse files
marcorcauMarc Orcaubojanbogdanovic
authored
fix(next): fix wrong iFrame preview URL on "Latest version" tab for translations (#501)
Co-authored-by: Marc Orcau <marc.orcau@edittec.com> Co-authored-by: Bojan Bogdanovic <info@bojanbogdanovic.nl>
1 parent 40e9f53 commit dfa340d

File tree

1 file changed

+0
-6
lines changed

1 file changed

+0
-6
lines changed

modules/next/src/NextEntityTypeManager.php

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -72,12 +72,6 @@ public function getEntityFromRouteMatch(RouteMatchInterface $route_match): ?Enti
7272
if ($node_revision instanceof NodeInterface) {
7373
return $node_revision;
7474
}
75-
76-
if ($route_match->getRouteName() === 'entity.node.latest_version') {
77-
$node_revision = $route_match->getParameter('node')->getRevisionId();
78-
}
79-
80-
return $this->entityTypeManager->getStorage('node')->loadRevision($node_revision);
8175
}
8276

8377
foreach ($route_match->getParameters() as $parameter) {

0 commit comments

Comments
 (0)