diff --git a/Neos.Neos/Classes/Domain/Repository/EditPreviewModeRepository.php b/Neos.Neos/Classes/Domain/Repository/EditPreviewModeRepository.php index bc392d0c873..d93a391c0b1 100644 --- a/Neos.Neos/Classes/Domain/Repository/EditPreviewModeRepository.php +++ b/Neos.Neos/Classes/Domain/Repository/EditPreviewModeRepository.php @@ -36,7 +36,7 @@ public function findDefault(): EditPreviewMode public function findByName(string $name): EditPreviewMode { - if (array_key_exists($name,$this->editPreviewModeConfigurations)) { + if (array_key_exists($name, $this->editPreviewModeConfigurations)) { return EditPreviewMode::fromNameAndConfiguration($name, $this->editPreviewModeConfigurations[$name]); } throw new InvalidEditPreviewModeException(sprintf('"%s" is not a valid editPreviewMode', $name), 1683790077); diff --git a/Neos.Neos/Classes/FrontendRouting/NodeUriBuilder.php b/Neos.Neos/Classes/FrontendRouting/NodeUriBuilder.php index e042b2b954a..43e8b9adb12 100644 --- a/Neos.Neos/Classes/FrontendRouting/NodeUriBuilder.php +++ b/Neos.Neos/Classes/FrontendRouting/NodeUriBuilder.php @@ -66,7 +66,8 @@ public function uriFor(NodeAddress $nodeAddress): UriInterface { if (!$nodeAddress->isInLiveWorkspace()) { $request = $this->uriBuilder->getRequest(); - if ($request->getControllerPackageKey() === 'Neos.Neos' + if ( + $request->getControllerPackageKey() === 'Neos.Neos' && $request->getControllerName() === "Frontend\Node" ) { if ($request->getControllerActionName() == 'edit') { diff --git a/Neos.Neos/Classes/Fusion/Helper/BackendHelper.php b/Neos.Neos/Classes/Fusion/Helper/BackendHelper.php index dfebb300a32..8e1b01113e0 100644 --- a/Neos.Neos/Classes/Fusion/Helper/BackendHelper.php +++ b/Neos.Neos/Classes/Fusion/Helper/BackendHelper.php @@ -59,7 +59,8 @@ public function isPreviewMode(ActionRequest $request): bool public function editPreviewModeCacheIdentifier(ActionRequest $request): string { - if ($request->getControllerPackageKey() === 'Neos.Neos' + if ( + $request->getControllerPackageKey() === 'Neos.Neos' && $request->getControllerName() === "Frontend\Node" && ($request->getControllerActionName() === 'edit' || $request->getControllerActionName() === 'preview') ) { diff --git a/Neos.Neos/Classes/Service/LinkingService.php b/Neos.Neos/Classes/Service/LinkingService.php index a1eb2b7235f..19b70bb4b4b 100644 --- a/Neos.Neos/Classes/Service/LinkingService.php +++ b/Neos.Neos/Classes/Service/LinkingService.php @@ -370,12 +370,13 @@ public function createNodeUri( $uriBuilder = clone $controllerContext->getUriBuilder(); $uriBuilder->setRequest($request); - if ($request->getControllerPackageKey() === 'Neos.Neos' + if ( + $request->getControllerPackageKey() === 'Neos.Neos' && $request->getControllerName() === "Frontend\Node" && in_array($request->getControllerActionName(), ['edit', 'preview']) ) { $action = $request->getControllerActionName(); - if ( $request->hasArgument('editPreviewMode')) { + if ($request->hasArgument('editPreviewMode')) { $arguments['editPreviewMode'] = $request->getArgument('editPreviewMode'); } } else {