Issue Bug Closed

#87574Redirects to records (linkHandler) don't work

Benjamin Robinson 01/29/19, 18:36 updated 12/23/19, 22:48

Description

A redirect (sysext:redirects) to a record (f.e. t3://record?identifier=tx_news&uid=1) results in the error:

Core: Exception handler (WEB): Uncaught TYPO3 Exception: Call to a member function getMountPointInfo() on string | Error thrown in file /html/typo3/typo3_src-9.5.4/typo3/sysext/frontend/Classes/Typolink/PageLinkBuilder.php in line 111. Requested URL: […]

TSconfig

TCEMAIN.linkHandler{
    tx_news{
        handler = TYPO3\CMS\Recordlist\LinkHandler\RecordLinkHandler
        label = News
        scanAfter = page
        displayBefore = file
        configuration {
            table = tx_news_domain_model_news
            storagePid = 35
            hidePageTree = 0
            pageTreeMountPoints = 35
        }
    }
}

Setup

config.recordLinks{
    tx_news{
        typolink{
            parameter = 39
            additionalParams.data = field:uid
            additionalParams.wrap = &tx_news_pi1[controller]=News&tx_news_pi1[action]=detail&tx_news_pi1[news]=|
            useCacheHash = 1
        }
    }
}

I have tested this setup with links in regular content like …

<a href="t3://record?identifier=tx_news&amp;uid=1">Link</a>

… and those are working fine.

Reviews 2