#108894config.recordLinks has no fallback to defined language
Description
Linking to a news record works in
a) default language
b) alternative language, when the news record is translated
but not in
c) alternative language, when the news record is NOT translated
There, I expect a link to the news detail page in alternative language, but with the news contents from default language.
My news list in alternative language is also showing the news from default language, if there is no translation.
I have this configuration:
config.recordLinks.tx_news {
typolink {
parameter = {$plugin.tx_news.settings.defaultDetailPid}
additionalParams.data = field:uid
additionalParams.wrap = &tx_news_pi1[news]=|&tx_news_pi1[controller]=News&tx_news_pi1[action]=detail
ATagParams.data = parameters:allParams
target.data = parameters:target
title.data = parameters:title
}
}
And this site configuration:
languages:
-
title: German
enabled: true
languageId: 0
base: /
locale: de_DE.UTF-8
flag: de
hreflang: de-DE
-
title: English
enabled: true
locale: en_US.UTF-8
hreflang: en-US
base: /en/
fallbackType: fallback
fallbacks: '0'
flag: en-us-gb
languageId: 1
Not working in TYPO3 v12 and v13.
Reviews 2
Related issues 1
History 6
-
Julian Pohl commented <span data-processor="relativetime" data-value="2026-05-11T14:54:17+00:00" > 05/11/26, 14:54 </span>
Had the same issue, was able to solve it by setting config.recordLinks.tx_news.forceLink = 1. This ignores the language overlay and uses the fallback language directly. Hope this helps
-
Julian Mair commented <span data-processor="relativetime" data-value="2026-05-19T12:13:40+00:00" > 05/19/26, 12:13 </span>
My problem was fixed by updating to v13.4.29, cause of https://review.typo3.org/c/Packages/TYPO3.CMS/+/93783
-
Daniel Siepmann commented <span data-processor="relativetime" data-value="2026-10-19T06:56:57+00:00" > 10/19/26, 06:56 </span>
We still have an issue which sounds very related to this one.
We have multiple languages and a news record which exists in default language and translation. The news record has its
internalurlset for linking. We now build a link inside the frontend to the translated record, but end up with the link as defined in the default language. Currently on 13.4.36.Here is the TypoScript Setup:
config { recordLinks { article { typolink { parameter.stdWrap { # Select the link generation strategy appropriate for the news type cObject = CASE cObject { key.field = type # Internal page 1 = TEXT 1.field = internalurl } } } } } }It looks like the issue is also within
TYPO3\CMS\Frontend\Typolink\DatabaseRecordLinkBuilderwhere the overlay of the record is created, but not used. This leads to using the default language record during link building / evaluating the TypoScriptfield.Our current patch:
diff --git a/typo3/sysext/frontend/Classes/Typolink/DatabaseRecordLinkBuilder.php b/typo3/sysext/frontend/Classes/Typolink/DatabaseRecordLinkBuilder.php index e7e8b42d87c..39a449e6815 100644 --- a/typo3/sysext/frontend/Classes/Typolink/DatabaseRecordLinkBuilder.php +++ b/typo3/sysext/frontend/Classes/Typolink/DatabaseRecordLinkBuilder.php @@ -77,6 +77,8 @@ class DatabaseRecordLinkBuilder extends AbstractTypolinkBuilder // We avoid linking to it if (!isset($overlay['_LOCALIZED_UID'])) { $record = null; + } else { + $record = $overlay; } } } -
Benni Mack changed Related to #111377 <span data-processor="relativetime" data-value="2026-11-09T16:50:49+00:00" > 11/09/26, 16:50 </span>
-
Oliver Bartsch commented and changed status
NewClosed <span data-processor="relativetime" data-value="2026-11-09T17:52:27+00:00" > 11/09/26, 17:52 </span>This has been fixed by https://review.typo3.org/c/Packages/TYPO3.CMS/+/97434 (#111377). Untranslated records are now linked in language mode “fallback”, in strict mode they are still not linked.
I’m experiencing the same issue, although
fallbackTypeis set tostrictin config.yaml . A link is still generated to the detail page, even when the record has not been translated.I have a Typo3 v13.4.28