diff --git a/route.php b/route.php index ddd4213..77f27c2 100644 --- a/route.php +++ b/route.php @@ -205,7 +205,9 @@ class route } /** 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 * name * @param string $destURL Do a redirection of the HTTP page @@ -222,9 +224,6 @@ class route if ($module !== "") $baseURL .= $module."/"; $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) === "/") { // Absolute : return to project base