Issue Bug Closed

#100931No link generated for record with language 'all languages'

Albert van der Veen 05/30/23, 10:44 updated 07/09/24, 14:15

Description

In function ‘build’ in sysext/frontend/Classes/Typolink/DatabaseRecordLinkBuilder.php a check is done on the availability of field ‘_LOCALIZED_UID’ in the overlay record. However, in function ‘getRecordOverlay’ in sysext/core/Classes/Domain/Repository/PageRepository.php the record is untouched and therefore not filled with this field when $row[$tableControl[‘languageField’]] equals -1. This means no links are generated in the frontend for records that are supposed to be for all languages, except for the default langauge. In the code these comments are added:
// Return record for ALL languages untouched
// @todo: Fix call stack to prevent this situation in the first place

Reviews 3