Bug with url string having a protocol. Fixes #1508