Fix broken links marked as valid when ancestor is not public - #4473
Fix broken links marked as valid when ancestor is not public#4473jarlhengstmengel wants to merge 1 commit into
Conversation
|
@jarlhengstmengel There are some cases I would like this PR to cover but if you think it's out of the scope, just open a new issue ✏️
|
I think we have the "checklinks" command that checks all links. Bit afraid to use it though 😅
So expand the linkcheck listener to cover linked children? |
🤔 We have one chance to see whether it goes well: deployment to the test system. I prefer to call the command in a migration but we can also run it manually after release (cons: we may forget it)
It would be ideal, but we can handle it as separate issue too. I'll leave the deicision on you as PR author. |
There was a problem hiding this comment.
Thank you for the fix 😸
I opened an issue for my suggestion to tackle it separately as discussed today #4486
We can fix the existing links by command.
seluianova
left a comment
There was a problem hiding this comment.
It seems the fix works for a two-level hierarchy (one parent and one child), but it doesn't work for deeper nesting.
I tested the following structure:

When I link the "Level 3" page somewhere, the link checker still reports it as a valid link.

Do we want to treat this as a separate issue or fix here?
Just discussed in the meeting: this will be fixed in this issue (= no separate issue). |
|
@seluianova I'm afraid I can't reproduce the situation you describe 😅 I created couple of nested pages down to 4th level. Only the root is in Draft and the others published. When linking the page at 4th level in another page, it gets reported correctly as invalid
|


Short description
Fixes that broken links are marked as valid when a ancestor is not public
Proposed changes
Side effects
Faithfulness to issue description and design
There are no intended deviations from the issue and design.
How to test
Also check if linked events and locations work as expected
Resolved issues
Fixes: #4325
Pull Request Review Guidelines