diff --git a/searx/static/plugins/js/infinite_scroll.js b/searx/static/plugins/js/infinite_scroll.js
index 9930880e3..cd8096571 100644
--- a/searx/static/plugins/js/infinite_scroll.js
+++ b/searx/static/plugins/js/infinite_scroll.js
@@ -9,7 +9,7 @@ function loadNextPage() {
$('#pagination').html('
');
$.ajax({
type: "POST",
- url: './',
+ url: $('#search_form').prop('action'),
data: formData,
dataType: 'html',
success: function(data) {
diff --git a/searx/templates/__common__/opensearch.xml b/searx/templates/__common__/opensearch.xml
index e76a14aff..2476258c0 100644
--- a/searx/templates/__common__/opensearch.xml
+++ b/searx/templates/__common__/opensearch.xml
@@ -6,9 +6,9 @@
{{ urljoin(host, url_for('static', filename='img/favicon.png')) }}
searx metasearch
{% if opensearch_method == 'get' %}
-
+
{% else %}
-
+
{% endif %}
diff --git a/searx/templates/__common__/opensearch_response_rss.xml b/searx/templates/__common__/opensearch_response_rss.xml
index 686443c49..82d3f7c4e 100644
--- a/searx/templates/__common__/opensearch_response_rss.xml
+++ b/searx/templates/__common__/opensearch_response_rss.xml
@@ -4,7 +4,7 @@
xmlns:atom="http://www.w3.org/2005/Atom">
Searx search: {{ q|e }}
- {{ base_url }}?q={{ q|e }}
+ {{ url_for('search', _external=True) }}?q={{ q|e }}
Search results for "{{ q|e }}" - searx
{{ number_of_results }}
1
diff --git a/searx/templates/courgette/results.html b/searx/templates/courgette/results.html
index aa983e666..716ea4d95 100644
--- a/searx/templates/courgette/results.html
+++ b/searx/templates/courgette/results.html
@@ -1,6 +1,6 @@
{% extends "courgette/base.html" %}
{% block title %}{{ q|e }} - {% endblock %}
-{% block meta %}{% endblock %}
+{% block meta %}{% endblock %}
{% block content %}
@@ -10,12 +10,12 @@