use object_url to get protocol and hostname