Skip to content

Commit

Permalink
Re-add support for absolute URIs
Browse files Browse the repository at this point in the history
  • Loading branch information
Bernhard Schmitt committed Sep 2, 2024
1 parent 65f6330 commit 6db566f
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion Classes/Infrastructure/UriService.php
Original file line number Diff line number Diff line change
Expand Up @@ -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;

Expand All @@ -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
Expand Down

0 comments on commit 6db566f

Please sign in to comment.