fix link_from_url parsing