Issue Bug Closed

#97777linkhandler config.recordLinks for news plugin (as example) not working if news article is translated

Markus Eckert 06/15/22, 10:46 updated 02/07/26, 09:33

Description

I use the LinkHandler API to provide the editor with the ability to link directly to news articles. In the default language everything works fine. However, if the news article is translated, no link is rendered by the f:link.typolink-ViewHelper.

- The news detail page including the plugin is fully translated.
- In the link selection in the backend I tested it with the default language UID as well as with the translated UID of the news article record without success.

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

            ATagParams.data = parameters:allParams
            target.data = parameters:target
            title.data = parameters:title

            extTarget.data = parameters:target
        }
        forceLink = 1
    }
}

My idea to include the L parameter was also unsuccessful.

...
    additionalParams.wrap = &L={GP:L}&tx_news_pi1[controller]=News&tx_news_pi1[action]=detail&tx_news_pi1[news]=|
    additionalParams.insertData = 1
...

Meanwhile I think it is a bug, so I create this ticket here. I hope someone can help or confirm that it is a bug.

Reviews 0

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