Feature #94086

Softref for custom linkhandler

Added by Philipp Kitzberger 6 months ago. Updated 6 months ago.

Status:
New
Priority:
Should have
Assignee:
-
Category:
Linkvalidator
Target version:
-
Start date:
2021-05-07
Due date:
% Done:

0%

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

Description

In our project we've got a custom linkhandler set up that works with external entities and the following link format: t3 ://foo?subtype=bar&identifier=123

Just to be clear: it's not a record linkhandler!

When trying to config the EXT:linkvalidator we've noticed that it uses the "softref index" to identify the links to be validated.

tt_content.bodytext is configured via TCA to have this softref configuration: typolink_tag,email[subst],url

In \TYPO3\CMS\Core\Database\SoftReferenceIndex::findRef_typolink_tag only these types seem to be processed though:

if ($linkDetails['type'] === LinkService::TYPE_FILE && preg_match('/file\?uid=(\d+)/', $matches[1], $fileIdMatch)) {
    ...
} elseif ($linkDetails['type'] === LinkService::TYPE_PAGE && preg_match('/page\?uid=(\d+)#?(\d+)?/', $matches[1], $pageAndAnchorMatches)) {
    ...    
} elseif ($linkDetails['type'] === LinkService::TYPE_URL) {
    ...
} elseif ($linkDetails['type'] === LinkService::TYPE_EMAIL) {
    ...
} elseif ($linkDetails['type'] === LinkService::TYPE_TELEPHONE) {
    ...
}

Am I right that LinkService::TYPE_RECORD and our custom linkhandler is not being processed at the moment? Just to be sure before investing time and creating a patch ;-)

#1

Updated by Philipp Kitzberger 6 months ago

  • Tracker changed from Bug to Feature
  • TYPO3 Version deleted (10)

Also available in: Atom PDF