diff --git a/laravel/request.php b/laravel/request.php index 67c5ab8c..b25b903b 100644 --- a/laravel/request.php +++ b/laravel/request.php @@ -36,7 +36,7 @@ public static function uri() { if ( ! is_null(static::$uri)) return static::$uri; - $uri = $_SERVER['REQUEST_URI']; + $uri = parse_url($_SERVER['REQUEST_URI'], PHP_URL_PATH); // Remove the root application URL from the request URI. If the application // is nested within a sub-directory of the web document root, this will get