From 349b87ec18d8d894f1f9edcdc3ba4713fef7c154 Mon Sep 17 00:00:00 2001 From: Abhishek M J <85760664+abhishekmj303@users.noreply.github.com> Date: Mon, 1 May 2023 21:53:57 +0530 Subject: [PATCH] Fix unsupported_g_pages in result list (#996) Closes #995 --- app/filter.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/app/filter.py b/app/filter.py index 9e52a26..bc11275 100644 --- a/app/filter.py +++ b/app/filter.py @@ -486,7 +486,9 @@ class Filter: if parent.name == 'footer' or f'{GClasses.footer}' in p_cls: link.decompose() parent = parent.parent - return + + if link.decomposed: + return # Replace href with only the intended destination (no "utm" type tags) href = link['href'].replace('https://www.google.com', '')