if the url starts with a `//` then split would be: ['', 'path/...']. Protocol is empty, so, in this case we need to assign it to `//`.