diff --git a/Classes/Fusion/Helper/NodeInfoHelper.php b/Classes/Fusion/Helper/NodeInfoHelper.php index fc4b2390ab..3e902cff3f 100644 --- a/Classes/Fusion/Helper/NodeInfoHelper.php +++ b/Classes/Fusion/Helper/NodeInfoHelper.php @@ -344,7 +344,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 @@ -352,7 +355,11 @@ public function previewUri(Node $node, ActionRequest $actionRequest): string $contentRepository = $this->contentRepositoryRegistry->get($node->subgraphIdentity->contentRepositoryId); $nodeAddressFactory = NodeAddressFactory::create($contentRepository); $nodeAddress = $nodeAddressFactory->createFromNode($node); - return (string)NodeUriBuilder::fromRequest($actionRequest)->previewUriFor($nodeAddress); + + $uriBuilder = new UriBuilder(); + $uriBuilder->setRequest($actionRequest); + $uriBuilder->setCreateAbsoluteUri(true); + return (string)NodeUriBuilder::fromUriBuilder($uriBuilder)->previewUriFor($nodeAddress); } public function createRedirectToNode(Node $node, ActionRequest $actionRequest): string