Skip to content
This repository was archived by the owner on Mar 4, 2026. It is now read-only.

Commit 2c54ad9

Browse files
Merge pull request #14 from queoGmbH/master
[BUGFIX] Fixed bug on deeper folders throwing a 404
2 parents 2493e91 + 8cfe4e3 commit 2c54ad9

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

Classes/Package/FrontendNodeRoutePartHandler.php

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -85,14 +85,15 @@ protected function findNextNodeWithPathSegmentRecursively(
8585
): ?NodeInterface {
8686
foreach ($startingNode->getChildNodes('Neos.Neos:Document') as $node) {
8787
if ($workspaceName === 'live' && $this->shouldHideNodeUriSegment($node)) {
88+
$currentIndex = count($relativeNodePathSegments);
8889
$foundNode = $this->findNextNodeWithPathSegmentRecursively(
8990
$node,
9091
$pathSegment,
9192
$relativeNodePathSegments,
9293
$workspaceName
9394
);
9495
if ($foundNode !== null) {
95-
array_unshift($relativeNodePathSegments, $node->getName());
96+
array_splice($relativeNodePathSegments, $currentIndex, 0, $node->getName());
9697
return $foundNode;
9798
}
9899
}

0 commit comments

Comments
 (0)