public function getUriAsIs() { $query = $this->server->get('QUERY_STRING'); if (!empty($query)) { $query = '?' . $query; } return $this->getSchemeAndHttpHost() . $this->getBaseUrl() . $this->getPathInfo() . $query; }