Issue Bug Closed

#99887TypoLink UserFunc in TypoScript seems not to work in 12

Alex Kellner 02/08/23, 20:34 updated 07/09/24, 12:46

Description

I just tried to use a UserFunc for typolink as part of a linkhandler configuration (like Torben shows it in his blog post https://www.derhansen.de/2022/01/typo3-multiple-dynamic-typolink-parameters.html).
The UserFunc is called correctly. But returning a string with a beginning A-tag does not render the link:

class TypoLink
{
    public function createEventLink(array $content, array $config): string
    {
        return '<a href="/">';
    }
}

Reviews 0

No change resolves or names this issue in its commit message, and no comment links one.