fix typo protocal => protocol
add support for protocol-less URLs