Added handling for urls with both a path and http://