Skip to content

Commit

Permalink
Merge pull request #14 from queoGmbH/master
Browse files Browse the repository at this point in the history
[BUGFIX] Fixed bug on deeper folders throwing a 404
  • Loading branch information
breadlesscode authored Jul 21, 2020
2 parents 2493e91 + 8cfe4e3 commit 2c54ad9
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion Classes/Package/FrontendNodeRoutePartHandler.php
Original file line number Diff line number Diff line change
Expand Up @@ -85,14 +85,15 @@ protected function findNextNodeWithPathSegmentRecursively(
): ?NodeInterface {
foreach ($startingNode->getChildNodes('Neos.Neos:Document') as $node) {
if ($workspaceName === 'live' && $this->shouldHideNodeUriSegment($node)) {
$currentIndex = count($relativeNodePathSegments);
$foundNode = $this->findNextNodeWithPathSegmentRecursively(
$node,
$pathSegment,
$relativeNodePathSegments,
$workspaceName
);
if ($foundNode !== null) {
array_unshift($relativeNodePathSegments, $node->getName());
array_splice($relativeNodePathSegments, $currentIndex, 0, $node->getName());
return $foundNode;
}
}
Expand Down

0 comments on commit 2c54ad9

Please sign in to comment.