fix the getUrlForExtraId function