news icon indicating copy to clipboard operation
news copied to clipboard

Preview of translated record does not work with Fallback Type = strict

Open christophlehmann opened this issue 3 years ago • 1 comments

Bug Report

Current Behavior

  • News Preview is configured as mentioned in the docs
  • A news is translated and the translation is hidden.
  • The Fallback Type of the language is strict.
  • No special routing configuration for preview links

The preview of the translated news ends with a 404 (or The news record is not available anymore.)

Expected behavior/output

I see the translated news.

Environment

  • TYPO3 version(s): 10.4
  • news version: 8.4.1

Possible Solution

In \GeorgRinger\News\Domain\Repository\NewsRepository::findByUid()

$query->getQuerySettings()->getLanguageOverlayMode() is hideNonTranslated

If i set it to anything else (true/false) then i see the news.

christophlehmann avatar Mar 15 '21 18:03 christophlehmann