From 8bcba31e3198ee12345278620a5f9af9ec8adb99 Mon Sep 17 00:00:00 2001 From: Scott Wallace Date: Tue, 1 Sep 2020 17:41:48 +0100 Subject: [PATCH] Add key to settings.yml for opening result links in a new tab Closes #1552 Closes #444 --- searx/preferences.py | 2 +- searx/settings.yml | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) 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