From 114aecc713204635dc2d0275ee88c0b683f4d637 Mon Sep 17 00:00:00 2001 From: Quentin Aristote Date: Tue, 26 Oct 2021 12:52:59 +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/web') diff --git a/config/services/web/searx/searx/engines.nix b/config/services/web/searx/searx/engines.nix index 1ce7205..7aa292a 100644 --- a/config/services/web/searx/searx/engines.nix +++ b/config/services/web/searx/searx/engines.nix @@ -31,7 +31,8 @@ in (disable [ name = "alternativeto"; engine = "xpath"; paging = true; - search_url = "https://alternativeto.net/browse/search?q={query}&p={pageno}"; + # an invisible whitespace is added at the end of the query to prevent redirections + search_url = "https://alternativeto.net/browse/search?q={query}%E2%80%8E&p={pageno}"; results_xpath = '' //article[@class="row app-list-item"]/div[@class="col-xs-10 col-sm-10 col-md-11 col-lg-offset-1 col-lg-11"]''; url_xpath = "./h3/a/@href"; -- cgit v1.2.3