Habe vorerst das Backend so gehackt, dass es die preview.php richtig aufruft inklusive Sprache und Alias:
PHP-Code:
// vendor/contao/core-bundle/src/Resources/contao/classes/Backend.php - Zeile 1061
// Return the image
// return '<a href="' . StringUtil::specialcharsUrl(System::getContainer()->get('router')->generate('contao_backend_preview', array('page'=>$row['id']))) . '" title="' . StringUtil::specialchars($GLOBALS['TL_LANG']['MSC']['view']) . '" target="_blank">' . Image::getHtml($image, '', $imageAttribute) . '</a> ' . $label;
$objPage = PageModel::findById($row['id']);
$objPage->loadDetails();
$strLanguage = $objPage->rootLanguage;
return '<a href="' . StringUtil::specialcharsUrl('preview.php/'.$strLanguage.'/'.$row['alias'].".html") . '" title="' . StringUtil::specialchars($GLOBALS['TL_LANG']['MSC']['view']) . '" target="_blank">' . Image::getHtml($image, '', $imageAttribute) . '</a> ' . $label;
So kommt es zur keiner Weiterleitung und auch keinen Fehler. Jedoch ist es nicht updatesicher.
Lesezeichen