diff --git a/searx/templates/opensearch.xml b/searx/templates/opensearch.xml
index 82f8225c0..f39283f99 100644
--- a/searx/templates/opensearch.xml
+++ b/searx/templates/opensearch.xml
@@ -4,8 +4,8 @@
Search searx
UTF-8
searx metasearch
- {% if method == 'get' %}
-
+ {% if opensearch_method == 'get' %}
+
{% if autocomplete %}
diff --git a/searx/webapp.py b/searx/webapp.py
index 57734e2cf..89d288e73 100644
--- a/searx/webapp.py
+++ b/searx/webapp.py
@@ -128,6 +128,7 @@ def render(template_name, **kwargs):
return render_template(template_name, **kwargs)
+@app.route('/search', methods=['GET', 'POST'])
@app.route('/', methods=['GET', 'POST'])
def index():
"""Render index page.
@@ -392,7 +393,7 @@ def opensearch():
method = 'get'
ret = render('opensearch.xml',
- method=method,
+ opensearch_method=method,
host=get_base_url())
resp = Response(response=ret,