Refactor getUrl -> get_url