From a760476d1b398ffa18b817f654aa8f3ca6c0a848 Mon Sep 17 00:00:00 2001 From: Charles Zawacki <44577941+cazwacki@users.noreply.github.com> Date: Tue, 3 Jan 2023 12:19:39 -0500 Subject: [PATCH] Omit 'mobile.' and 'm.' in site alt replacements (#922) Resolves #921 --- app/utils/results.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/utils/results.py b/app/utils/results.py index 1a249e5..5604a4e 100644 --- a/app/utils/results.py +++ b/app/utils/results.py @@ -10,7 +10,7 @@ from urllib.parse import parse_qs import re SKIP_ARGS = ['ref_src', 'utm'] -SKIP_PREFIX = ['//www.', '//mobile.', '//m.', 'www.'] +SKIP_PREFIX = ['//www.', '//mobile.', '//m.', 'www.', 'mobile.', 'm.'] GOOG_STATIC = 'www.gstatic.com' G_M_LOGO_URL = 'https://www.gstatic.com/m/images/icons/googleg.gif' GOOG_IMG = '/images/branding/searchlogo/1x/googlelogo'