route : remove the automatic adding of the / to allow the redirect from word to word/ without error of loop

git-svn-id: https://svn.fournier38.fr/svn/ProgSVN/trunk@2227 bf3deb0d-5f1a-0410-827f-c0cc1f45334c
This commit is contained in:
2015-08-10 14:31:16 +00:00
parent 0053e3eb1a
commit 8f9d404343

View File

@@ -171,8 +171,9 @@ class route
if ($module !== "")
$baseURL .= $module."/";
$requestURL = $this->requestURL ();
if (substr ($requestURL, -1) !== "/")
$requestURL .= "/";
// FIXME : Why do I add this slash ? I can not redirect the word to word/
// if (substr ($requestURL, -1) !== "/")
// $requestURL .= "/";
if ($destURL[0] === "/")
{
// Absolute : return to project base