use resolved_url instead of given_url to cut down on need to fix redirects