diff --git a/src/Resources/contao/library/Contao/Controller.php b/src/Resources/contao/library/Contao/Controller.php index aa52179d4c..a1148dc914 100644 --- a/src/Resources/contao/library/Contao/Controller.php +++ b/src/Resources/contao/library/Contao/Controller.php @@ -1104,7 +1104,10 @@ public static function generateFrontendUrl(array $arrRow, $strParams=null, $strF // Correctly handle the "index" alias (see #3961) if ($arrRow['alias'] == 'index' && $strParams == '') { - $strUrl = (\Config::get('rewriteURL') ? '' : 'index.php/') . $strLanguage; + if ($strLanguage != '') // see #7757 + { + $strUrl = (\Config::get('rewriteURL') ? '' : 'index.php/') . $strLanguage; + } } else {