|
10 | 10 | use Neos\Flow\Http\BaseUriProvider; |
11 | 11 | use Neos\Flow\Http\Helper\RequestInformationHelper; |
12 | 12 | use Neos\Flow\Http\Helper\ResponseInformationHelper; |
| 13 | +use Neos\Flow\Http\ServerRequestAttributes; |
13 | 14 | use Neos\Flow\Mvc\ActionRequest; |
14 | 15 | use Neos\Flow\Mvc\ActionResponse; |
15 | 16 | use Neos\Flow\Mvc\Controller\Arguments; |
16 | 17 | use Neos\Flow\Mvc\Controller\ControllerContext; |
| 18 | +use Neos\Flow\Mvc\Routing\Dto\RouteParameters; |
17 | 19 | use Neos\Flow\Mvc\Routing\UriBuilder; |
18 | 20 | use Neos\Neos\Domain\Model\Site; |
19 | 21 | use Neos\Utility\ObjectAccess; |
@@ -123,7 +125,7 @@ public function renderDocumentNodeVariant(NodeInterface $node, array $arguments, |
123 | 125 | } catch (\Exception $exception) { |
124 | 126 | throw new Exception\RenderingException('Error rendering document view', $node, $nodeUri, 1491378709, $exception); |
125 | 127 | } finally { |
126 | | - $this->cacheUrlMappingAspect->afterDocumentRendering (); |
| 128 | + $this->cacheUrlMappingAspect->afterDocumentRendering(); |
127 | 129 | } |
128 | 130 | } |
129 | 131 |
|
@@ -185,6 +187,8 @@ protected function getRequest($uri, NodeInterface $node) |
185 | 187 | $_SERVER['FLOW_REWRITEURLS'] = '1'; |
186 | 188 |
|
187 | 189 | $httpRequest = new ServerRequest('GET', $uri); |
| 190 | + $routingParameters = RouteParameters::createEmpty()->withParameter('requestUriHost', $httpRequest->getUri()->getHost()); |
| 191 | + $httpRequest = $httpRequest->withAttribute(ServerRequestAttributes::ROUTING_PARAMETERS, $routingParameters); |
188 | 192 |
|
189 | 193 | $request = ActionRequest::fromHttpRequest($httpRequest); |
190 | 194 | $request->setControllerObjectName('Neos\Neos\Controller\Frontend\NodeController'); |
|
0 commit comments