Browse Source

Add key to settings.yml for opening result links in a new tab
Closes #1552
Closes #444

Scott Wallace 4 years ago
parent
commit
8bcba31e31
2 changed files with 2 additions and 1 deletions
  1. 1 1
      searx/preferences.py
  2. 1 0
      searx/settings.yml

+ 1 - 1
searx/preferences.py

@@ -364,7 +364,7 @@ class Preferences(object):
                 choices=themes
                 choices=themes
             ),
             ),
             'results_on_new_tab': MapSetting(
             'results_on_new_tab': MapSetting(
-                False,
+                settings['ui'].get('results_on_new_tab', False),
                 map={
                 map={
                     '0': False,
                     '0': False,
                     '1': True,
                     '1': True,

+ 1 - 0
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
     default_locale : "" # Default interface locale - leave blank to detect from browser information or use codes from the 'locales' config section
     theme_args :
     theme_args :
         oscar_style : logicodev # default style of oscar
         oscar_style : logicodev # default style of oscar
+#   results_on_new_tab: False  # Open result links in a new tab by default
 #   categories_order :
 #   categories_order :
 #     - general
 #     - general
 #     - files
 #     - files