diff options
Diffstat (limited to 'searx/webapp.py')
| -rwxr-xr-x | searx/webapp.py | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/searx/webapp.py b/searx/webapp.py index fe6dd6b74..b2a76ff92 100755 --- a/searx/webapp.py +++ b/searx/webapp.py @@ -697,6 +697,10 @@ def search(): previous_result = None results = result_container.get_ordered_results() + + if search_query.redirect_to_first_result and results: + return redirect(results[0]['url'], 302) + for result in results: if output_format == 'html': if 'content' in result and result['content']: |