summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorQuentin Aristote <quentin@aristote.fr>2021-10-26 13:04:31 +0200
committerQuentin Aristote <quentin@aristote.fr>2021-10-26 13:04:31 +0200
commit5cfea47e0dc4ed18e1dc60ffb807a66e4839484f (patch)
tree0b392a989c39431d34d740f351aef7e3df86f098
parent114aecc713204635dc2d0275ee88c0b683f4d637 (diff)
add invisible whitespace at the end of the query to prevent redirections
-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 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'';