src/Control/HTTPRequest.php
public function getURL($includeGetVars = false)
    {
        $url = ($this->getExtension()) ? $this->url . '.' . $this->getExtension() : $this->url;

        if ($includeGetVars) {
            $vars = $this->getVars();
            if (count($vars)) {
                $url .= '?' . http_build_query($vars);
            }
        } elseif (strpos($url, "?") !== false) {
            $url = substr($url, 0, strpos($url, "?"));
        }

        return $url;
    }
public function getURL($includeGetVars = false)
    {
        $url = ($this->getExtension()) ? $this->url . '.' . $this->getExtension() : $this->url;

        if ($includeGetVars) {
            $vars = $this->getVars();
            if (count($vars)) {
                $url .= '?' . http_build_query($vars);
            }
        } elseif (strpos($url, "?") !== false) {
            $url = substr($url, 0, strpos($url, "?"));
        }

        return $url;
    }
public function getURL ( $ includeGetVars = false ) { $ url = ( $ this -> getExtension ( ) ) ? $ this -> url . '.' . $ this -> getExtension ( ) : $ this -> url ; if ( $ includeGetVars ) { $ vars = $ this -> getVars ( ) ; if ( count ( $ vars ) ) { $ url .= '?' . http_build_query ( $ vars ) ; } } elseif ( strpos ( $ url , "?" ) !== false ) { $ url = substr ( $ url , 0 , strpos ( $ url , "?" ) ) ; } return $ url ; }
Returns the URL used to generate the page

@param bool $includeGetVars whether or not to include the get parameters\
@return string
Returns the URL used to generate the page