I found a problem with linkchecker reporting orphaned paragraphs. This made our editors search for ever in linked node for the reported broken link.
I made a small patch. Can this be reviewed?

Command icon Show commands

Start within a Git clone of the project using the version control instructions.

Or, if you do not have SSH keys set up on git.drupalcode.org:

Comments

vistree created an issue. See original summary.

codebymikey made their first commit to this issue’s fork.

codebymikey’s picture

Hi @vistree, picked up your patch and addressed so it also handles when the parent is deleted or the field it was previously attached to no longer exists.

Also think it's slightly related to #3607125: Search published contents only option does not exclude links found in paragraphs of unpublished nodes, as they both relate to making sure the parent's status is taken into account.

codebymikey’s picture

Title: Orphaned paragraphs are reported by linkchecker » [PP-1] Orphaned paragraphs are reported by linkchecker
Version: 2.1.0 » 2.1.x-dev
Status: Active » Postponed
Parent issue: » #3135654: Handle nested paragraphs in 'Page entity label' and 'Page entity link' Views fields
Related issues: -#3135654: Handle nested paragraphs in 'Page entity label' and 'Page entity link' Views fields

Marking as postponed for now because #3135654: Handle nested paragraphs in 'Page entity label' and 'Page entity link' Views fields introduces a potential new API that this issue should probably use to resolve the top-most parent.