Fix visiting urls with non-http(s) schemes

Fixes #1336