on master help sign in
Add key to settings.yml for opening result links in a new tab

Closes #1552 Closes #444

commit8bcba31e3198ee12345278620a5f9af9ec8adb99 authorScott Wallace <scott@wallace.sh> dateTue 1 Sep 2020, 17:41 (6 years ago) parent4a91324
2 files changed+2−1
searx/preferences.py+1−1 searx/settings.yml+1
searx/preferences.py+1−1
@@ -364,7 +364,7 @@ class Preferences(object):
364364 choices=themes
365365 ),
366366 'results_on_new_tab': MapSetting(
367− False,
367+ settings['ui'].get('results_on_new_tab', False),
368368 map={
369369 '0': False,
370370 '1': True,
searx/settings.yml+1
@@ -25,6 +25,7 @@ ui:
2525 default_locale : "" # Default interface locale - leave blank to detect from browser information or use codes from the 'locales' config section
2626 theme_args :
2727 oscar_style : logicodev # default style of oscar
28+# results_on_new_tab: False # Open result links in a new tab by default
2829# categories_order :
2930# - general
3031# - files