Issue Bug Closed

#108894config.recordLinks has no fallback to defined language

Sven Burkert 02/07/26, 09:14 updated 11/09/26, 17:52

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

History 6

  1. Julian Mair commented <span data-processor="relativetime" data-value="2026-05-08T08:10:34+00:00" > 05/08/26, 08:10 </span>

    I’m experiencing the same issue, although fallbackType is set to strict in 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

  2. 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

  3. 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 internalurl set 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\DatabaseRecordLinkBuilder where the overlay of the record is created, but not used. This leads to using the default language record during link building / evaluating the TypoScript field.

    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;
                         }
                     }
                 }
  4. Oliver Bartsch commented and changed status New Closed <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.