Use uri function instead of get_url