diff --git a/tests/router.php b/tests/router.php index 6c00377b..5ba314d1 100644 --- a/tests/router.php +++ b/tests/router.php @@ -18,5 +18,6 @@ if(preg_match('/\.(?:png|jpg|jpeg|gif|css|js|php)(\?.*)?$/', $_SERVER["REQUEST_U // all other requests (use shimmie routing based on URL) $_SERVER["PHP_SELF"] = '/'; -$_GET['q'] = $_SERVER["REQUEST_URI"]; +$_GET['q'] = explode("?", $_SERVER["REQUEST_URI"])[0]; +error_log($_GET['q']); require_once "index.php";