Project

General

Profile

Actions

Bug #97777

open

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

Added by Markus Eckert almost 2 years ago. Updated 9 months ago.

Status:
Needs Feedback
Priority:
Should have
Assignee:
-
Category:
Link Handling, Site Handling & Routing
Target version:
Start date:
2022-06-15
Due date:
% Done:

0%

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

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.


Related issues 2 (1 open1 closed)

Related to TYPO3 Core - Bug #97806: Linkhandler to translated records does not work on translated pagesRejected2022-06-23

Actions
Related to TYPO3 Core - Story #101565: Frontend related translation issuesNew2023-08-03

Actions
Actions

Also available in: Atom PDF