Neos.Neos/Classes/Service/Controller/NodeController.php
protected function redirectToRenderNode(NodeInterface $node, $fusionPath)
    {
        $q = new FlowQuery([$node]);
        $closestContentCollection = $q->closest('[instanceof Neos.Neos:ContentCollection]')->get(0);
        $closestDocumentNode = $q->closest('[instanceof Neos.Neos:Document]')->get(0);

        $this->redirect('show', 'Frontend\\Node', 'Neos.Neos', [
            'node' => $closestDocumentNode,
            '__nodeContextPath' => $closestContentCollection->getContextPath(),
            '__affectedNodeContextPath' => $node->getContextPath(),
            '__fusionPath' => $fusionPath
        ], 0, 303, 'html');
    }
protected function redirectToRenderNode(NodeInterface $node, $fusionPath)
    {
        $q = new FlowQuery([$node]);
        $closestContentCollection = $q->closest('[instanceof Neos.Neos:ContentCollection]')->get(0);
        $closestDocumentNode = $q->closest('[instanceof Neos.Neos:Document]')->get(0);

        $this->redirect('show', 'Frontend\\Node', 'Neos.Neos', [
            'node' => $closestDocumentNode,
            '__nodeContextPath' => $closestContentCollection->getContextPath(),
            '__affectedNodeContextPath' => $node->getContextPath(),
            '__fusionPath' => $fusionPath
        ], 0, 303, 'html');
    }
protected function redirectToRenderNode ( NodeInterface $ node , $ fusionPath ) { $ q = new FlowQuery ( [ $ node ] ) ; $ closestContentCollection = $ q -> closest ( '[instanceof Neos.Neos:ContentCollection]' ) -> get ( 0 ) ; $ closestDocumentNode = $ q -> closest ( '[instanceof Neos.Neos:Document]' ) -> get ( 0 ) ; $ this -> redirect ( 'show' , 'Frontend\\Node' , 'Neos.Neos' , [ 'node' => $ closestDocumentNode , '__nodeContextPath' => $ closestContentCollection -> getContextPath ( ) , '__affectedNodeContextPath' => $ node -> getContextPath ( ) , '__fusionPath' => $ fusionPath ] , 0 , 303 , 'html' ) ; }
Takes care of creating a redirect to properly render the collection the given node is in.

@param NodeInterface $node
@param string $fusionPath
@return string
Takes care of creating a redirect to properly render the collection the given node is in .