Skip to content
This repository has been archived by the owner on Nov 3, 2023. It is now read-only.

Commit

Permalink
Omit the index.php fragment if the request string is empty (see #7757
Browse files Browse the repository at this point in the history
…).
  • Loading branch information
leofeyer committed Jun 3, 2015
1 parent 8ccd097 commit 74515f1
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/Resources/contao/library/Contao/Controller.php
Original file line number Diff line number Diff line change
Expand Up @@ -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
{
Expand Down

0 comments on commit 74515f1

Please sign in to comment.