summaryrefslogtreecommitdiff
path: root/src/prefs.c
diff options
context:
space:
mode:
authorRodrigo Arias Mallo <rodarima@gmail.com>2023-12-11 00:41:36 +0100
committerrodarima <rodarima@gmail.com>2023-12-17 20:42:39 +0100
commitb4f638bb6b38a646dd9e9bd035049361477a3120 (patch)
treea6196de26c7b115644c5a96690af09a6288b160a /src/prefs.c
parent3e00bcbe563418be7322795bf72076dfe313817f (diff)
Fix DuckDuckGo search links
The DuckDuckGo service that redirects the links from the search page is returning a broken page for non-javascript browsers. They have a meta refresh tag in the body, instead of in the head. Adding the kd=-1 argument causes the DuckDuckGo search results to point directly to the target page avoiding the redirection. Based on this patch: https://salsa.debian.org/debian/dillo/-/commit/ffbd4fc0e6cf94b3947d02766224c0e80344a017 Thanks: liftof+dbug@gmail.com Thanks: Axel Beckert <abe@debian.org> Bug-Debian: https://bugs.debian/org/924357
Diffstat (limited to 'src/prefs.c')
-rw-r--r--src/prefs.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/prefs.c b/src/prefs.c
index 59590356..67816acb 100644
--- a/src/prefs.c
+++ b/src/prefs.c
@@ -18,7 +18,7 @@
#define PREFS_FONT_CURSIVE "URW Chancery L"
#define PREFS_FONT_FANTASY "DejaVu Sans" /* TODO: find good default */
#define PREFS_FONT_MONOSPACE "DejaVu Sans Mono"
-#define PREFS_SEARCH_URL "dd http://duckduckgo.com/lite/?kp=-1&q=%s"
+#define PREFS_SEARCH_URL "dd http://duckduckgo.com/lite/?kp=-1&kd=-1&q=%s"
#define PREFS_NO_PROXY "localhost 127.0.0.1"
#define PREFS_SAVE_DIR "/tmp/"
#define PREFS_HTTP_REFERER "host"