Classes/Service/NodeRedirectService.php
public function collectPossibleRedirects(NodeInterface $node, Workspace $targetWorkspace)
    {
        $nodeType = $node->getNodeType();
        if ($targetWorkspace->isPublicWorkspace() === false || $nodeType->isOfType('Neos.Neos:Document') === false) {
            return;
        }
        $this->appendNodeAndChildrenDocumentsToPendingRedirects($node, $targetWorkspace);
    }
public function collectPossibleRedirects(NodeInterface $node, Workspace $targetWorkspace)
    {
        $nodeType = $node->getNodeType();
        if ($targetWorkspace->isPublicWorkspace() === false || $nodeType->isOfType('Neos.Neos:Document') === false) {
            return;
        }
        $this->appendNodeAndChildrenDocumentsToPendingRedirects($node, $targetWorkspace);
    }
Collects the node for redirection if it is a 'Neos.Neos:Document' node and its URI has changed

@param NodeInterface $node The node that is about to be published
@param Workspace $targetWorkspace
@return void
@throws \Neos\Flow\Mvc\Routing\Exception\MissingActionNameException