public function current()
    {
        $port = Current::port();
        if (! $port || ! $prefix = $port->prefix()) {
            return $this->to($this->request->getPathInfo());
        }

        return $this->to($this->getPathInfo());
    }
public function current()
    {
        $port = Current::port();
        if (! $port || ! $prefix = $port->prefix()) {
            return $this->to($this->request->getPathInfo());
        }

        return $this->to($this->getPathInfo());
    }
public function current ( ) { $ port = Current :: port ( ) ; if ( ! $ port || ! $ prefix = $ port -> prefix ( ) ) { return $ this -> to ( $ this -> request -> getPathInfo ( ) ) ; } return $ this -> to ( $ this -> getPathInfo ( ) ) ; }
Get the current URL for the request.

@return string
Get the current URL for the request .