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:
@@ -171,8 +171,9 @@ class route
|
|||||||
if ($module !== "")
|
if ($module !== "")
|
||||||
$baseURL .= $module."/";
|
$baseURL .= $module."/";
|
||||||
$requestURL = $this->requestURL ();
|
$requestURL = $this->requestURL ();
|
||||||
if (substr ($requestURL, -1) !== "/")
|
// FIXME : Why do I add this slash ? I can not redirect the word to word/
|
||||||
$requestURL .= "/";
|
// if (substr ($requestURL, -1) !== "/")
|
||||||
|
// $requestURL .= "/";
|
||||||
if ($destURL[0] === "/")
|
if ($destURL[0] === "/")
|
||||||
{
|
{
|
||||||
// Absolute : return to project base
|
// Absolute : return to project base
|
||||||
|
|||||||
Reference in New Issue
Block a user