diff --git a/build/router/core/Router.php b/build/router/core/Router.php index ee62743..c4b0d42 100755 --- a/build/router/core/Router.php +++ b/build/router/core/Router.php @@ -18,6 +18,10 @@ class Router{ * */ public function __construct($url){ + // Format URI (ne doit pas avoir le premier '/') + if( preg_match("@^/@", $url) ) + $url = substr($url, 1); + $this->url = $url; // On initialise les routes