From 1aad47f2afa29990d9db31abf7717b5d78257ea7 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jo=C3=A3o?= Date: Tue, 20 Sep 2022 19:10:27 +0200 Subject: [PATCH] Fix bad internal redirection for google links (#850) --- app/filter.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/app/filter.py b/app/filter.py index 8f15195..cd07318 100644 --- a/app/filter.py +++ b/app/filter.py @@ -454,8 +454,11 @@ class Filter: if any(url in link_netloc for url in unsupported_g_pages): # FIXME: The "Shopping" tab requires further filtering (see #136) # Temporarily removing all links to that tab for now. - + + # Replaces the /url google unsupported link to the direct url + link['href'] = link_netloc parent = link.parent + if 'google.com/preferences?hl=' in link_netloc: # Handle case where a search is performed in a different # language than what is configured. This usually returns a