route : update phpdoc

git-svn-id: https://svn.fournier38.fr/svn/ProgSVN/trunk@3739 bf3deb0d-5f1a-0410-827f-c0cc1f45334c
This commit is contained in:
2017-05-31 12:05:52 +00:00
parent 2ae8a6dad0
commit 42cfed50c1

View File

@@ -205,7 +205,9 @@ class route
} }
/** Do all the routing with redirections /** Do all the routing with redirections
* $destURL can be absolute or relative * $destURL can be absolute or relative.
* - absolute : "/main" redirect to "baseURL/mail"
* - relative : "main" redirect to "./main"
* If module is set, the site is modular and a directory is named with module * If module is set, the site is modular and a directory is named with module
* name * name
* @param string $destURL Do a redirection of the HTTP page * @param string $destURL Do a redirection of the HTTP page
@@ -222,9 +224,6 @@ class route
if ($module !== "") if ($module !== "")
$baseURL .= $module."/"; $baseURL .= $module."/";
$requestURL = $this->requestURL (); $requestURL = $this->requestURL ();
// FIXME : Why do I add this slash ? I can not redirect the word to word/
// if (substr ($requestURL, -1) !== "/")
// $requestURL .= "/";
if (substr ($destURL, 0, 1) === "/") if (substr ($destURL, 0, 1) === "/")
{ {
// Absolute : return to project base // Absolute : return to project base