Fixed a bug with base_urls including a scheme (http/https)