src/Request.php
public function getUrlWithoutArgs()
    {
        $url = $this->getUrl();
        if (($pos = strpos($url, '?')) !== false) {
            $url = substr($url, 0, $pos);
        }
        return $url;
    }
public function getUrlWithoutArgs()
    {
        $url = $this->getUrl();
        if (($pos = strpos($url, '?')) !== false) {
            $url = substr($url, 0, $pos);
        }
        return $url;
    }
public function getUrlWithoutArgs ( ) { $ url = $ this -> getUrl ( ) ; if ( ( $ pos = strpos ( $ url , '?' ) ) !== false ) { $ url = substr ( $ url , 0 , $ pos ) ; } return $ url ; }
Returns path.

```
http://site.com/foo/
```

@return string
Returns path .