summaryrefslogtreecommitdiff
path: root/searx
diff options
context:
space:
mode:
authorAdam Tauber <asciimoo@gmail.com>2020-09-02 00:37:29 +0200
committerGitHub <noreply@github.com>2020-09-02 00:37:29 +0200
commitf77ad22d65df391098cde18196fdf1054419be1d (patch)
treea48aa9546491107c62f6c473fbc287003511b874 /searx
parent4a913247b29286299e678e0756119fb62293760f (diff)
parent8bcba31e3198ee12345278620a5f9af9ec8adb99 (diff)
downloadsearxng-f77ad22d65df391098cde18196fdf1054419be1d.tar.gz
searxng-f77ad22d65df391098cde18196fdf1054419be1d.zip
Merge pull request #2167 from scottwallacesh/fix_1552
Add key to settings.yml for opening result links in a new tab
Diffstat (limited to 'searx')
-rw-r--r--searx/preferences.py2
-rw-r--r--searx/settings.yml1
2 files changed, 2 insertions, 1 deletions
diff --git a/searx/preferences.py b/searx/preferences.py
index cb33bc5aa..82b8f5224 100644
--- a/searx/preferences.py
+++ b/searx/preferences.py
@@ -364,7 +364,7 @@ class Preferences(object):
choices=themes
),
'results_on_new_tab': MapSetting(
- False,
+ settings['ui'].get('results_on_new_tab', False),
map={
'0': False,
'1': True,
diff --git a/searx/settings.yml b/searx/settings.yml
index 6f9afd139..d6ea53177 100644
--- a/searx/settings.yml
+++ b/searx/settings.yml
@@ -25,6 +25,7 @@ ui:
default_locale : "" # Default interface locale - leave blank to detect from browser information or use codes from the 'locales' config section
theme_args :
oscar_style : logicodev # default style of oscar
+# results_on_new_tab: False # Open result links in a new tab by default
# categories_order :
# - general
# - files