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 !== "")
|
||||
$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
|
||||
|
||||
Reference in New Issue
Block a user