diff --git a/Classes/Controller/BackendServiceController.php b/Classes/Controller/BackendServiceController.php index 816eab2273..adc388d582 100644 --- a/Classes/Controller/BackendServiceController.php +++ b/Classes/Controller/BackendServiceController.php @@ -585,7 +585,7 @@ public function flowQueryAction(array $chain): string } /** @see GetOperation */ - assert(is_callable([$flowQuery, 'get'])); + assert(is_object($flowQuery) && is_callable([$flowQuery, 'get'])); $nodeInfoHelper = new NodeInfoHelper(); $type = $finisher['type'] ?? null; diff --git a/Classes/Fusion/Helper/NodeInfoHelper.php b/Classes/Fusion/Helper/NodeInfoHelper.php index daaf228364..3e5278c1bc 100644 --- a/Classes/Fusion/Helper/NodeInfoHelper.php +++ b/Classes/Fusion/Helper/NodeInfoHelper.php @@ -350,7 +350,10 @@ public function uri(Node|NodeAddress $nodeAddress, ActionRequest $actionRequest) $nodeAddressFactory = NodeAddressFactory::create($contentRepository); $nodeAddress = $nodeAddressFactory->createFromNode($nodeAddress); } - return (string)NodeUriBuilder::fromRequest($actionRequest)->uriFor($nodeAddress); + $uriBuilder = new UriBuilder(); + $uriBuilder->setRequest($actionRequest); + $uriBuilder->setCreateAbsoluteUri(true); + return (string)NodeUriBuilder::fromUriBuilder($uriBuilder)->uriFor($nodeAddress); } public function previewUri(Node $node, ActionRequest $actionRequest): string