public function getUrlWithoutArgs()
    {
        $url = $this->getUrl();
        if (($pos = strpos($url, '?')) !== false) {
            $url = substr($url, 0, $pos);
        }
        return $url;
    }