modify resource path to auto-choose protocol