diff --git a/processors/conversion/consolidate_urls.py b/processors/conversion/consolidate_urls.py index 449695bf5..53e62fc6d 100644 --- a/processors/conversion/consolidate_urls.py +++ b/processors/conversion/consolidate_urls.py @@ -339,7 +339,7 @@ def remove_url_components(parsed_url, remove_scheme=False, remove_domain=False, if remove_scheme: parsed_url = parsed_url._replace(scheme="") if remove_domain: - parsed_url = parsed_url._replace(domain="") + parsed_url = parsed_url._replace(netloc="") if remove_path: parsed_url = parsed_url._replace(path="") if remove_query: