diff --git a/router.php b/router.php index 1148bee..c9f0453 100644 --- a/router.php +++ b/router.php @@ -47,8 +47,8 @@ function route($route, $path_to_include) exit(); } $request_url = filter_var($_SERVER['REQUEST_URI'], FILTER_SANITIZE_URL); - $request_url = rtrim($request_url, '/'); $request_url = strtok($request_url, '?'); + $request_url = rtrim($request_url, '/'); $route_parts = explode('/', $route); $request_url_parts = explode('/', $request_url); array_shift($route_parts);