Skip to content

Commit 6db566f

Browse files
author
Bernhard Schmitt
committed
Re-add support for absolute URIs
1 parent 65f6330 commit 6db566f

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

Classes/Infrastructure/UriService.php

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,7 @@
2424
use Neos\Flow\Mvc;
2525
use Neos\Flow\Core\Bootstrap;
2626
use Neos\Neos\FrontendRouting\NodeUriBuilderFactory;
27+
use Neos\Neos\FrontendRouting\Options;
2728
use PackageFactory\AtomicFusion\PresentationObjects\Fusion\UriServiceInterface;
2829
use Psr\Http\Message\UriInterface;
2930

@@ -46,7 +47,7 @@ public function __construct(
4647
public function getNodeUri(Node $documentNode, bool $absolute = false, ?string $format = null): UriInterface
4748
{
4849
return $this->nodeUriBuilderFactory->forActionRequest($this->getControllerContext()->getRequest())
49-
->uriFor(NodeAddress::fromNode($documentNode));
50+
->uriFor(NodeAddress::fromNode($documentNode), $absolute ? Options::createForceAbsolute() : null);
5051
}
5152

5253
public function getResourceUri(string $packageKey, string $resourcePath): UriInterface

0 commit comments

Comments
 (0)