credential: optionally allow partial URLs in credential_from_url_gently()