Project

General

Profile

Actions

Feature #103403

open

Make it possible to check custom record links with linkvalidator

Added by Sybille Peters 9 months ago. Updated 3 months ago.

Status:
Under Review
Priority:
Must have
Category:
Linkvalidator
Target version:
-
Start date:
2024-03-15
Due date:
% Done:

0%

Estimated time:
PHP Version:
Tags:
Complexity:
Sprint Focus:

Description

Currently, there is a known problem that RECORD link checking is not possible via the typolink_tag softref parser, see #102468. Because of this, when fixing this issue, one must currently test the record link checking using urls which are not wrapped in an a tag. This can be done for example, by using tt_content.header_link.

e.g. "t3://record?identifier=tx_news&uid=99999"

as described in https://docs.typo3.org/p/georgringer/news/main/en-us/Tutorials/BestPractice/Linkhandler/Index.html#linkhandler

Currently, InternalLinktype::checkLink is called for these types of links, but then it always evaluates to "true" if the target table is not "tt_content" or "pages":

if (!in_array($table, ['pages', 'tt_content'], true)) {
   return true;
}

https://github.com/TYPO3/typo3/blob/5c95229af666e4ce39dd5a22baecd3390d649c49/typo3/sysext/linkvalidator/Classes/Linktype/InternalLinktype.php#L85

Ideally, the InternalLinktype could handle custom records for other tables as well, e.g. tx_news_domain_model_news.


Related issues 3 (2 open1 closed)

Related to TYPO3 Core - Bug #102468: Linkvalidator doesn't check record/custom links within RTEs at allNew2023-11-22

Actions
Related to TYPO3 Core - Feature #94086: Softref for custom linkhandlerNeeds Feedback2021-05-07

Actions
Related to TYPO3 Core - Task #92693: Deprecate Linktype LinkHandler in linkvalidatorClosedSybille Peters2020-10-23

Actions
Actions

Also available in: Atom PDF