Fix for protocol agnostic urls