private function hasChangedResourceSegment(PageDocument $document)
    {
        $metadata = $this->metadataFactory->getStructureMetadata('page', $document->getStructureType());

        $urlProperty = $metadata->getPropertyByTagName('sulu.rlp');
        $urlPropertyName = $this->propertyEncoder->localizedContentName(
            $urlProperty->getName(),
            $document->getLocale()
        );

        $liveNode = $this->getLiveNode($document);
        $url = $liveNode->getPropertyValueWithDefault($urlPropertyName, null);

        return $url && $url !== $document->getResourceSegment();
    }