summaryrefslogtreecommitdiff
path: root/config
diff options
context:
space:
mode:
authorQuentin Aristote <quentin@aristote.fr>2021-10-26 12:52:59 +0200
committerQuentin Aristote <quentin@aristote.fr>2021-10-26 12:52:59 +0200
commit114aecc713204635dc2d0275ee88c0b683f4d637 (patch)
treeb047a5e2408af2d6a64731b1019926cc68536e57 /config
parentb9a44a819ee7136453fde5ed0ecb140871ddd506 (diff)
add invisible whitespace at the end of the query to prevent redirections
Diffstat (limited to 'config')
-rw-r--r--config/services/web/searx/searx/engines.nix3
1 files changed, 2 insertions, 1 deletions
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";