I would simplify this with `URI(url_formatted(url, ignore_params))`