protected function formatUrl()
    {
        // append trailing slash to the
        // baseUrl if it is missing
        if (! empty($this->payload['base_url']) && substr($this->payload['base_url'], -1) !== '/') {
            $this->payload['base_url'] = $this->payload['base_url'].'/';
        }

        // append the base url
        $this->payload['url'] = trim($this->payload['base_url'].$this->payload['url']);
    }