Problem/Motivation
With links in paragraphs, we can end up with results from previous revisions - e.g. ` > Sidebar menu (previous revision)`.
This can make views showing broken links less useful.
Steps to reproduce
Have a broken link inside a paragraph field which is no longer the current revision.
Proposed resolution
Indicate when links are in old revisions of paragraphs, and then add a filter to remove them.
| Comment | File | Size | Author |
|---|---|---|---|
| #16 | 3366753-minimal.patch | 6.47 KB | marttir |
Issue fork linkchecker-3366753
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
Comment #4
eiriksmThanks! ❤️
For starters, do you mind fixing up the coding standards in your Mr?
Comment #5
lazysoundsystem commentedThanks for checking and sorry for the coding standards, I was trying through gitlab's web ide for the first time, but got confused.
Still to come is a way to filter out fields with this label - and to see if the label can be worded better.
Comment #6
hemangi.gokhaleThe patch got applied cleanly, but as per the diff at line no. 78, field name
field_paragraphsis hardcoded. Need a better way of handling such a scenario.Comment #7
hemangi.gokhaleThis is ready for review.
Comment #8
lazysoundsystem commentedThanks, this is an improvement!
Comment #12
eiriksmWould be super nice to have some tests for this. Would you be able to fix that do you think?
Comment #13
paula_iuga commentedComment #14
paula_iuga commented@eiriksm I will add some tests.
Comment #15
marttir commentedNeed to fix a few issues and rebase the code onto latest dev.
Comment #16
marttir commentedSorry for uploading a patch, but MR 84 doesn't yet apply to 2.0.0 or 2.1.0-alpha, the latter of which removes the dependency on dynamic_entity_reference.
This "minimal" patch is a modified version of the MR 84 diff, and applying it on 2.1.0-alpha fixes the issue.
Comment #17
imclean commentedIt would be good to filter out the outdated content. I'm using this patch with a slight change.
I don't want outdated content checked at all.