Issue Bug Resolved

#106661typolink softref parser handles links of type "record" but typolink_tag does not

Sybille Peters 05/07/25, 08:16 updated 09/24/26, 21:45

Description

The softref parser TypolinkSoftReferenceParser specifically handles links of type LinkService::TYPE_RECORD. The softref parser TypolinkTagSoftReferenceParser (used for example in RTE) does not.

Reproduce

  1. use EXT:news or some other extension which allows links of type record.
  2. for news, configure it in TSConfig (see below)
  3. add a news entry
  4. now create a “textmedia” content element with link to news in the bodytext (via RTE) => uid=84
  5. create another textmedia content element. This time add the link to the header_link field => uid=85
  6. check reference index
SELECT * FROM sys_refindex WHERE tablename = 'tt_content' AND ref_table='tx_news_domain_model_news';

Expected results: there are 2 new entries in refindex for both links

Actual results: There is only one new entry for the link in header_link.

TSconfig linkhandler config:

TCEMAIN{
    linkHandler{

        tx_news {
            handler = TYPO3\CMS\Backend\LinkHandler\RecordLinkHandler
            label = News
            configuration {
                table = tx_news_domain_model_news
                # set storagePid to page of news entries 
                storagePid = 250
                # Hide the page tree by setting it to 1
                hidePageTree = 0
            }
            scanAfter = page
        }
    }
}

Impact

  • if record-links are detected by typolink soft reference parser, they are written to the reference index, if detected by typolink_tag parser, they are not. This is inconsistent
  • may also have impact in linkvalidator that record links in RTE fields are not detected (though the record link checking currently does not work anyway, see other issues, e.g. https://forge.typo3.org/issues/103403)

Versions

reproduced with:

  • version 12.4.25-dev (latest 12.4 branch)
  • version 13.4.10-dev (latest 13.4 branch)

Did not test with latest v14 / main, as there is no working “news” available yet.

Reviews 2