Skip to content

Commit

Permalink
BUGFIX: neos#4909 fix subrequest on show action
Browse files Browse the repository at this point in the history
> Could not resolve a route and its corresponding URI for the given parameters.
  • Loading branch information
mhsdesign committed Oct 20, 2024
1 parent 1c50ecd commit 235632d
Showing 1 changed file with 9 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -265,6 +265,15 @@ public function resolveWithParameters(array &$routeValues, RouteParameters $para
$currentRequestSiteDetectionResult = SiteDetectionResult::fromRouteParameters($parameters);

$nodeAddress = $routeValues[$this->name];

if (is_string($nodeAddress)) {
try {
$nodeAddress = NodeAddress::fromJsonString($nodeAddress);
} catch (\InvalidArgumentException) {
return false;
}
}

if (!$nodeAddress instanceof NodeAddress) {
return false;
}
Expand Down

0 comments on commit 235632d

Please sign in to comment.