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

Commit 5ae630d

Browse files
Merge pull request #24 from gradinarufelix/bugfix-correct-node-comparison
BUGFIX: Don't compare node objects directly but rather compare their paths
2 parents b4914fd + 710d199 commit 5ae630d

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

Classes/Package/FrontendNodeRoutePartHandler.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -139,7 +139,7 @@ protected function getRequestPathByNode(NodeInterface $node): string
139139
);
140140
}
141141

142-
if ($startingNode === $currentNode || !$this->shouldHideNodeUriSegment($currentNode)) {
142+
if ($startingNode->getPath() === $currentNode->getPath() || !$this->shouldHideNodeUriSegment($currentNode)) {
143143
$pathSegment = $currentNode->getProperty('uriPathSegment');
144144
$requestPathSegments[] = $pathSegment;
145145
}

0 commit comments

Comments
 (0)