From 6db566ffaa90527d04538980a8e3f308e2156903 Mon Sep 17 00:00:00 2001 From: Bernhard Schmitt Date: Mon, 2 Sep 2024 17:14:05 +0200 Subject: [PATCH] Re-add support for absolute URIs --- Classes/Infrastructure/UriService.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/Classes/Infrastructure/UriService.php b/Classes/Infrastructure/UriService.php index 6675f41..be46ed9 100644 --- a/Classes/Infrastructure/UriService.php +++ b/Classes/Infrastructure/UriService.php @@ -24,6 +24,7 @@ use Neos\Flow\Mvc; use Neos\Flow\Core\Bootstrap; use Neos\Neos\FrontendRouting\NodeUriBuilderFactory; +use Neos\Neos\FrontendRouting\Options; use PackageFactory\AtomicFusion\PresentationObjects\Fusion\UriServiceInterface; use Psr\Http\Message\UriInterface; @@ -46,7 +47,7 @@ public function __construct( public function getNodeUri(Node $documentNode, bool $absolute = false, ?string $format = null): UriInterface { return $this->nodeUriBuilderFactory->forActionRequest($this->getControllerContext()->getRequest()) - ->uriFor(NodeAddress::fromNode($documentNode)); + ->uriFor(NodeAddress::fromNode($documentNode), $absolute ? Options::createForceAbsolute() : null); } public function getResourceUri(string $packageKey, string $resourcePath): UriInterface