diff --git a/Neos.Neos/Classes/Controller/Frontend/NodeController.php b/Neos.Neos/Classes/Controller/Frontend/NodeController.php index 870f637c80e..884a8a577ef 100644 --- a/Neos.Neos/Classes/Controller/Frontend/NodeController.php +++ b/Neos.Neos/Classes/Controller/Frontend/NodeController.php @@ -201,10 +201,13 @@ protected function renderEditPreviewMode(string $node, EditPreviewMode $editPrev $this->handleShortcutNode($nodeAddress, $contentRepository); } + if ($editPreviewMode->fusionPath) { + $this->view->setFusionPath($editPreviewMode->fusionPath); + } + $this->view->assignMultiple([ 'value' => $nodeInstance, - 'site' => $site, - 'editPreviewMode' => $editPreviewMode + 'site' => $site ]); if (!$nodeAddress->isInLiveWorkspace()) { diff --git a/Neos.Neos/Resources/Private/Fusion/RootCase.fusion b/Neos.Neos/Resources/Private/Fusion/RootCase.fusion index 3755c3050ce..f4e5babd400 100644 --- a/Neos.Neos/Resources/Private/Fusion/RootCase.fusion +++ b/Neos.Neos/Resources/Private/Fusion/RootCase.fusion @@ -15,12 +15,6 @@ root { type = 'Neos.Neos:Page' } - editPreviewMode { - @position = 'end 9996' - condition = ${Neos.Node.inBackend(documentNode) && editPreviewMode.fusionPath} - renderPath = ${'/' + editPreviewMode.fusionPath} - } - format { @position = 'end 9997' condition = ${request.format != 'html'}