fix accidentally broken get_url function