forked from Ponysearch/Ponysearch
[fix] opensearch image issue - closes #507
This commit is contained in:
parent
308613e586
commit
bc81eda64b
4 changed files with 5 additions and 4 deletions
|
@ -3,7 +3,7 @@
|
||||||
<ShortName>{{ instance_name }}</ShortName>
|
<ShortName>{{ instance_name }}</ShortName>
|
||||||
<Description>a privacy-respecting, hackable metasearch engine</Description>
|
<Description>a privacy-respecting, hackable metasearch engine</Description>
|
||||||
<InputEncoding>UTF-8</InputEncoding>
|
<InputEncoding>UTF-8</InputEncoding>
|
||||||
<Image>{{ host }}{{ url_for('static', filename='img/favicon.png') | replace("/", "", 1) }}</Image>
|
<Image>{{ urljoin(host, url_for('static', filename='img/favicon.png')) }}</Image>
|
||||||
<LongName>searx metasearch</LongName>
|
<LongName>searx metasearch</LongName>
|
||||||
{% if opensearch_method == 'get' %}
|
{% if opensearch_method == 'get' %}
|
||||||
<Url type="text/html" method="get" template="{{ host }}search?q={searchTerms}"/>
|
<Url type="text/html" method="get" template="{{ host }}search?q={searchTerms}"/>
|
||||||
|
|
|
@ -3,7 +3,7 @@
|
||||||
<ShortName>{{ instance_name }}</ShortName>
|
<ShortName>{{ instance_name }}</ShortName>
|
||||||
<Description>a privacy-respecting, hackable metasearch engine</Description>
|
<Description>a privacy-respecting, hackable metasearch engine</Description>
|
||||||
<InputEncoding>UTF-8</InputEncoding>
|
<InputEncoding>UTF-8</InputEncoding>
|
||||||
<Image>{{ host }}{{ url_for('static', filename='img/favicon.png') | replace("/", "", 1) }}</Image>
|
<Image>{{ urljoin(host, url_for('static', filename='img/favicon.png')) }}</Image>
|
||||||
<LongName>searx metasearch</LongName>
|
<LongName>searx metasearch</LongName>
|
||||||
{% if opensearch_method == 'get' %}
|
{% if opensearch_method == 'get' %}
|
||||||
<Url type="text/html" method="get" template="{{ host }}search?q={searchTerms}"/>
|
<Url type="text/html" method="get" template="{{ host }}search?q={searchTerms}"/>
|
||||||
|
|
|
@ -3,7 +3,7 @@
|
||||||
<ShortName>{{ instance_name }}</ShortName>
|
<ShortName>{{ instance_name }}</ShortName>
|
||||||
<Description>a privacy-respecting, hackable metasearch engine</Description>
|
<Description>a privacy-respecting, hackable metasearch engine</Description>
|
||||||
<InputEncoding>UTF-8</InputEncoding>
|
<InputEncoding>UTF-8</InputEncoding>
|
||||||
<Image>{{ host }}{{ url_for('static', filename='img/favicon.png') | replace("/", "", 1) }}</Image>
|
<Image>{{ urljoin(host, url_for('static', filename='img/favicon.png')) }}</Image>
|
||||||
<LongName>searx metasearch</LongName>
|
<LongName>searx metasearch</LongName>
|
||||||
{% if opensearch_method == 'get' %}
|
{% if opensearch_method == 'get' %}
|
||||||
<Url type="text/html" method="get" template="{{ host }}search?q={searchTerms}"/>
|
<Url type="text/html" method="get" template="{{ host }}search?q={searchTerms}"/>
|
||||||
|
|
|
@ -749,7 +749,8 @@ def opensearch():
|
||||||
|
|
||||||
ret = render('opensearch.xml',
|
ret = render('opensearch.xml',
|
||||||
opensearch_method=method,
|
opensearch_method=method,
|
||||||
host=get_base_url())
|
host=get_base_url(),
|
||||||
|
urljoin=urljoin)
|
||||||
|
|
||||||
resp = Response(response=ret,
|
resp = Response(response=ret,
|
||||||
status=200,
|
status=200,
|
||||||
|
|
Loading…
Reference in a new issue