$parts =
explode('?',
$query, 2
);
$path =
$parts[0
];
$newQuery =
$query[1
] ?? '';
$this->superglobals->
setServer('QUERY_STRING',
$newQuery);
} else { $this->superglobals->
setServer('QUERY_STRING',
$query);
} // Update our global GET for values likely to have been changed
parse_str($this->superglobals->
server('QUERY_STRING'
),
$get);
$this->superglobals->
setGetArray($get);
return URI::
removeDotSegments($path);
} /**
* Will parse QUERY_STRING and automatically detect the URI from it.
*
* This method updates superglobal $_SERVER and $_GET.
*
* @return string The route path (before normalization).
*/