From 42cfed50c1f3a0d7d5ce88c35820b0482aeb6cd5 Mon Sep 17 00:00:00 2001 From: Dominique Fournier Date: Wed, 31 May 2017 12:05:52 +0000 Subject: [PATCH] route : update phpdoc git-svn-id: https://svn.fournier38.fr/svn/ProgSVN/trunk@3739 bf3deb0d-5f1a-0410-827f-c0cc1f45334c --- route.php | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) 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