diff --git a/bl-kernel/url.class.php b/bl-kernel/url.class.php index 6d296112..936e2da5 100644 --- a/bl-kernel/url.class.php +++ b/bl-kernel/url.class.php @@ -61,7 +61,7 @@ class Url $subString = mb_substr($this->uri, 0, $filterFullLenght, CHARSET); // Check coincidence without the last slash at the end, this case is notfound - if ($subString==$filterURIwoSlash) { + if (($subString==$filterURIwoSlash) && ($filterName!='admin')) { $this->setNotFound(); return false; } @@ -79,6 +79,8 @@ class Url } elseif (!empty($this->slug) && ($filterName=='blog')) { $this->setNotFound(); return false; + } elseif ($filterName=='admin') { + $this->slug = ltrim($this->slug, '/'); } return true;