Making urls for query and kvstore relative to protocol