From 9a84532686e691215c42fd42b9623221787161d8 Mon Sep 17 00:00:00 2001 From: Z <22781620+invis-z@users.noreply.github.com> Date: Wed, 27 Apr 2022 14:08:59 +0800 Subject: [PATCH] Change imgres to full URL. Revert "Change imgres to full URL." This reverts commit 6ea692b91bf29a31974e839d30dc6381e4317350. Update filter.py --- app/filter.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/filter.py b/app/filter.py index 55e9507..d633fe7 100644 --- a/app/filter.py +++ b/app/filter.py @@ -466,7 +466,7 @@ class Filter: if href.startswith(MAPS_URL): # Maps links don't work if a site filter is applied link['href'] = MAPS_URL + "?q=" + clean_query(q) - elif href.startswith('/?') or href.startswith('/search?'): + elif href.startswith('/?') or href.startswith('/search?') or href.startswith('/imgres?'): # make sure that tags can be clicked as relative URLs link['href'] = href[1:] elif href.startswith('/intl/'):