Skip to content

Commit

Permalink
Merge pull request #15 from die-wegmeister/master
Browse files Browse the repository at this point in the history
  • Loading branch information
breadlesscode authored Jul 26, 2020
2 parents 2c54ad9 + 411f102 commit 7a08898
Showing 1 changed file with 7 additions and 9 deletions.
16 changes: 7 additions & 9 deletions Classes/Package/FrontendNodeRoutePartHandler.php
Original file line number Diff line number Diff line change
Expand Up @@ -20,13 +20,6 @@ class FrontendNodeRoutePartHandler extends NeosFrontendNodeRoutePartHandler
*/
public const MIXIN_PROPERTY_NAME = 'hideSegmentInUriPath';


/**
* @Flow\InjectConfiguration("routing.supportEmptySegmentForDimensions", package="Neos.Neos")
* @var boolean
*/
protected bool $supportEmptySegmentForDimensions;

/**
* @param string $requestPath
* @return string
Expand Down Expand Up @@ -77,7 +70,7 @@ protected function getRelativeNodePathByUriPathSegmentProperties(NodeInterface $
* @return NodeInterface|null
* @throws NodeException
*/
protected function findNextNodeWithPathSegmentRecursively(
protected function findNextNodeWithPathSegmentRecursively(
NodeInterface $startingNode,
$pathSegment,
&$relativeNodePathSegments,
Expand Down Expand Up @@ -126,7 +119,12 @@ protected function getRequestPathByNode(NodeInterface $node): string
// To disallow showing a node actually hidden itself has to be ensured in matching
// a request path, not in building one.
$contextProperties = $node->getContext()->getProperties();
$contextAllowingHiddenNodes = $this->contextFactory->create(array_merge($contextProperties, ['invisibleContentShown' => true]));
$contextAllowingHiddenNodes = $this->contextFactory->create(
array_merge(
$contextProperties,
['invisibleContentShown' => true]
)
);
$currentNode = $contextAllowingHiddenNodes->getNodeByIdentifier($node->getIdentifier());

$requestPathSegments = [];
Expand Down

0 comments on commit 7a08898

Please sign in to comment.