From 5cfea47e0dc4ed18e1dc60ffb807a66e4839484f Mon Sep 17 00:00:00 2001 From: Quentin Aristote Date: Tue, 26 Oct 2021 13:04:31 +0200 Subject: add invisible whitespace at the end of the query to prevent redirections --- config/services/web/searx/searx/engines.nix | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'config/services') diff --git a/config/services/web/searx/searx/engines.nix b/config/services/web/searx/searx/engines.nix index 7aa292a..70a4cb2 100644 --- a/config/services/web/searx/searx/engines.nix +++ b/config/services/web/searx/searx/engines.nix @@ -53,7 +53,8 @@ in (disable [ { # Emojipedia name = "emojipedia"; engine = "xpath"; - search_url = "https://emojipedia.org/search/?q={query}"; + # an invisible whitespace is added at the end of the query to prevent redirections + search_url = "https://emojipedia.org/search/?q={query}%E2%80%8E"; url_xpath = ''//ol[@class="search-results"]/li/h2/a/@href''; title_xpath = ''//ol[@class="search-results"]/li/h2/a''; content_xpath = ''//ol[@class="search-results"]/li/p''; -- cgit v1.2.3