diff options
-rw-r--r-- | src/Jasny/Router.php | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/Jasny/Router.php b/src/Jasny/Router.php index 943e541..fe897c8 100644 --- a/src/Jasny/Router.php +++ b/src/Jasny/Router.php @@ -141,7 +141,7 @@ class Router */ public static function getUrl() { - if (!isset(static::$url)) static::$url = $_SERVER['REQUEST_URI']; + if (!isset(static::$url)) static::$url = preg_replace('/\?.*$/', '', $_SERVER['REQUEST_URI']); return static::$url; } |