Implementation for _get_url