code: protected static function requestUri()
  	{
  		if (!empty($_SERVER['REQUEST_URI']))
  		{
  			$arrComponents = parse_url($_SERVER['REQUEST_URI']);
  			$strRequest = $arrComponents['path'] . (isset($arrComponents['query']) ? '?' . $arrComponents['query'] : '');
  		}
  		else
  		{
  			$strRequest = '/' . preg_replace('/^\//', '', static::get('scriptName')) . (!empty($_SERVER['QUERY_STRING']) ? '?' . $_SERVER['QUERY_STRING'] : '');
  		}
  
  		return static::encodeRequestString($strRequest);
  	}
docs: Return the request URI [path]?[query] (e.g. /contao/index.php?id=2)
  
  @return string The request URI