From 8f9d4043437a4230e0b88ece09cf209782337b83 Mon Sep 17 00:00:00 2001 From: Dominique Fournier Date: Mon, 10 Aug 2015 14:31:16 +0000 Subject: [PATCH] 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 --- route.php | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/route.php b/route.php index 3a47f46..7bd9e5a 100644 --- a/route.php +++ b/route.php @@ -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