Project

General

Profile

Bug #90100 ยป 90100-linking_cross_site.diff

Martin Tepper, 2021-08-05 08:27

View differences:

typo3/sysext/frontend/Classes/Typolink/PageLinkBuilder.php
try {
$siteLanguageOfTargetPage = $siteOfTargetPage->getLanguageById($targetLanguageId);
} catch (\InvalidArgumentException $e) {
if ($siteOfTargetPage->getIdentifier() !== $currentSite->getIdentifier()) {
$siteLanguageOfTargetPage = $siteOfTargetPage->getLanguageById(0);
return $siteLanguageOfTargetPage;
}
throw new UnableToLinkException('The target page does not have a language with ID ' . $targetLanguageId . ' configured in its site configuration.', 1535477406);
}
return $siteLanguageOfTargetPage;
    (1-1/1)