#106675Checking links to pages does not check if page is hidden via rootline (e.g. if child of hidden=1 and extendToSubpages=1)
Description
A link to a subpage of page with hidden=1 and extendToSubpages=1 should be detected as broken. Should also check subpages of startime, endtime, fe_group.
Steps to Reproduce
- Create a page with hidden=1 and extendToSubpages=1
- Create a not hidden subpage of this page
- Create a page link to this page
- Run check links
Expected behavior: The page link should be detected as 404.
Actual behavior: Link is detected as “ok”
Versions
- TYPO3 version: main (14.0.0-dev) and lower
Reviews 0
No change resolves or names this issue in its commit message, and no comment links one.
History 3
-
Benni Mack changed Sprint Focus On Location Sprint <span data-processor="relativetime" data-value="2026-08-06T16:02:28+00:00" > 08/06/26, 16:02 </span>
-
Oliver Bartsch changed Duplicates #101367 <span data-processor="relativetime" data-value="2026-10-20T13:17:55+00:00" > 10/20/26, 13:17 </span>
-
Oliver Bartsch commented and changed status
NewClosed <span data-processor="relativetime" data-value="2026-10-20T13:17:56+00:00" > 10/20/26, 13:17 </span>
Hey,
thanks for the report. It’s correct: InternalLinktype::checkPage() only looks at the target page record itself (deleted, hidden, starttime, endtime). It never walks the rootline, so a visible subpage of a page with hidden=1 and extendToSubpages=1 is reported as OK.
It seems you ran into this one before: you already reported the same problem in #101367 back in July 2023 (“page link to not hidden child of hidden page with extendToSubpages is not considered broken (linkvalidator)”), and it is still open. Sorry that it has sat there for so long. I’m closing this one as a duplicate so we keep the discussion in one place, and can continue on #101367.
Cheers, Oli