diff --git a/src/Pecee/SimpleRouter/RouterRessource.php b/src/Pecee/SimpleRouter/RouterRessource.php index 359617d..5d4d608 100644 --- a/src/Pecee/SimpleRouter/RouterRessource.php +++ b/src/Pecee/SimpleRouter/RouterRessource.php @@ -55,7 +55,7 @@ class RouterRessource extends RouterEntry { $url = parse_url($url); $url = $url['path']; - if(strtolower($url) == strtolower($this->url) || stripos($url, $this->url . '/') === 0) { + if(strtolower($url) == strtolower($this->url) || stripos($url, $this->url) === 0) { $url = rtrim($url, '/'); $strippedUrl = trim(substr($url, strlen($this->url)), '/');