contao/test — Issue #842: bug in getPageIdFromUrl when page extension is .php
Author: importer
Created: 2011-11-28 17:30:51+00:00
State: open
Labels: Defect, frontend, Invalid

When page extension is ".php" instead of default ".html", a bug occur in "system/modules/frontend/Frontend.php" at line 92 because the root page give the url fragment "index" instead of "index.php". The consequence is that http://www.mywebsite.com/ is automatically redirected to the page 404.

Till this moment, I bypassed this problem using the hook "getPageIdFromUrl" with code :
if ($arrFragmentsr0=='index')
$arrFragmentsr0=null;
return array_unique($arrFragments);
But now, I would like a definitive solution without hack!!

![](

The second thing is that after every automatic update, the file "system/constants.php" is overwritten and the URL_SUFFIX is put back to ".html". The very irritating thing is that this value override the one I have in "localconfig.php", so that I have to modify manually "constants.php" after each update. Not very cool)

--- _Originally created by anonymous on June 30th, 2009, at 02:59pm (ID 842)_