mirror of
https://github.com/searxng/searxng.git
synced 2024-11-22 12:10:11 +01:00
[fix] re-add opensearch_url / its used in based.html
The URL was accidentally deleted in a85907a98
, but is still required in
base.html for auto-discovery / from base.html::
<link title="{{ instance_name }}"
type="application/opensearchdescription+xml"
rel="search" href="{{ opensearch_url }}"
/>
Signed-off-by: Markus Heiser <markus.heiser@darmarit.de>
This commit is contained in:
parent
e8bd6c03bf
commit
c0b97c6543
@ -438,6 +438,16 @@ def render(template_name: str, **kwargs):
|
||||
kwargs['cache_url'] = settings['ui']['cache_url']
|
||||
kwargs['get_result_template'] = get_result_template
|
||||
kwargs['doi_resolver'] = get_doi_resolver(request.preferences)
|
||||
kwargs['opensearch_url'] = (
|
||||
url_for('opensearch')
|
||||
+ '?'
|
||||
+ urlencode(
|
||||
{
|
||||
'method': request.preferences.get_value('method'),
|
||||
'autocomplete': request.preferences.get_value('autocomplete'),
|
||||
}
|
||||
)
|
||||
)
|
||||
kwargs['urlparse'] = urlparse
|
||||
|
||||
# scripts from plugins
|
||||
|
Loading…
Reference in New Issue
Block a user