Problem/Motivation

The links to entities are not correct. There is a bug in the getLineage method that assumes that the parent is a paragraph.

Steps to reproduce

Click on any entity with a canonical path to which a paragraph entity belongs. You will see that it loads a paragraph or a 404

Proposed resolution

  • Refactor the getLineage method to start with the first parent of the requested paragraph.
  • Do not initiate a recursion if the entity submitted to the method does not have parent entities.
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

chris dart created an issue. See original summary.

chris dart’s picture

  • 0e08b929 committed on 1.0.x
    Issue #3514755: Link to parent not correct
    
chris dart’s picture

  • 9d86bf6a committed on 1.0.x
    Issue #3514755: Remove parent lineage link
    

  • c7a94d32 committed on 1.0.x
    Issue #3514755: Fix bug with orphan paragraph lineage
    
chris dart’s picture

Status: Active » Fixed
chris dart’s picture

Status: Fixed » Closed (fixed)