diff options
| author | Adam Tauber <adam.tauber@balabit.com> | 2016-03-02 11:51:11 +0100 |
|---|---|---|
| committer | Adam Tauber <adam.tauber@balabit.com> | 2016-03-02 11:52:11 +0100 |
| commit | bc81eda64bccbdb24c5f482563cac7ba88ef1027 (patch) | |
| tree | bbf925bb484cc2eaaef99d5e79716cc5a493fe03 /searx/templates | |
| parent | 308613e586108fd7b713fc2a14f8200a0a781105 (diff) | |
[fix] opensearch image issue - closes #507
Diffstat (limited to 'searx/templates')
| -rw-r--r-- | searx/templates/courgette/opensearch.xml | 2 | ||||
| -rw-r--r-- | searx/templates/default/opensearch.xml | 2 | ||||
| -rw-r--r-- | searx/templates/oscar/opensearch.xml | 2 |
3 files changed, 3 insertions, 3 deletions
diff --git a/searx/templates/courgette/opensearch.xml b/searx/templates/courgette/opensearch.xml index b77db61cb..15d3eb792 100644 --- a/searx/templates/courgette/opensearch.xml +++ b/searx/templates/courgette/opensearch.xml @@ -3,7 +3,7 @@ <ShortName>{{ instance_name }}</ShortName> <Description>a privacy-respecting, hackable metasearch engine</Description> <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> {% if opensearch_method == 'get' %} <Url type="text/html" method="get" template="{{ host }}search?q={searchTerms}"/> diff --git a/searx/templates/default/opensearch.xml b/searx/templates/default/opensearch.xml index b77db61cb..15d3eb792 100644 --- a/searx/templates/default/opensearch.xml +++ b/searx/templates/default/opensearch.xml @@ -3,7 +3,7 @@ <ShortName>{{ instance_name }}</ShortName> <Description>a privacy-respecting, hackable metasearch engine</Description> <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> {% if opensearch_method == 'get' %} <Url type="text/html" method="get" template="{{ host }}search?q={searchTerms}"/> diff --git a/searx/templates/oscar/opensearch.xml b/searx/templates/oscar/opensearch.xml index b77db61cb..15d3eb792 100644 --- a/searx/templates/oscar/opensearch.xml +++ b/searx/templates/oscar/opensearch.xml @@ -3,7 +3,7 @@ <ShortName>{{ instance_name }}</ShortName> <Description>a privacy-respecting, hackable metasearch engine</Description> <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> {% if opensearch_method == 'get' %} <Url type="text/html" method="get" template="{{ host }}search?q={searchTerms}"/> |