Project

General

Profile

Actions

Bug #87574

closed

Redirects to records (linkHandler) don't work

Added by Benjamin Robinson about 5 years ago. Updated over 4 years ago.

Status:
Closed
Priority:
Should have
Assignee:
-
Category:
Link Handling, Site Handling & Routing
Target version:
-
Start date:
2019-01-29
Due date:
% Done:

100%

Estimated time:
TYPO3 Version:
9
PHP Version:
Tags:
Complexity:
Is Regression:
Sprint Focus:

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.


Related issues 2 (0 open2 closed)

Related to TYPO3 Core - Bug #82798: Linkhandler for records works only when BE user is logged inClosed2017-10-18

Actions
Related to TYPO3 Core - Feature #90818: Redirects - show config.recordLinks on target LinksClosedGeorg Ringer2020-03-23

Actions
Actions

Also available in: Atom PDF