Browse Source

[fix] set the title on the opensearch link tag

Firefox uses the title attributes instead of the ShortName from the xml file
as set in 0fbd7052 which closed #405
François Revol 8 years ago
parent
commit
96cfdc77d2
2 changed files with 2 additions and 2 deletions
  1. 1 1
      searx/templates/courgette/base.html
  2. 1 1
      searx/templates/legacy/base.html

+ 1 - 1
searx/templates/courgette/base.html

@@ -22,7 +22,7 @@
         {% endblock %}
         {% endblock %}
         {% block meta %}{% endblock %}
         {% block meta %}{% endblock %}
         {% block head %}
         {% block head %}
-        <link title="searx" type="application/opensearchdescription+xml" rel="search" href="{{ url_for('opensearch') }}"/>
+        <link title="{{ instance_name }}" type="application/opensearchdescription+xml" rel="search" href="{{ url_for('opensearch') }}"/>
         {% endblock %}
         {% endblock %}
         <script type="text/javascript">
         <script type="text/javascript">
             searx = {};
             searx = {};

+ 1 - 1
searx/templates/legacy/base.html

@@ -17,7 +17,7 @@
         {% endblock %}
         {% endblock %}
         {% block meta %}{% endblock %}
         {% block meta %}{% endblock %}
         {% block head %}
         {% block head %}
-        <link title="searx" type="application/opensearchdescription+xml" rel="search" href="{{ url_for('opensearch') }}"/>
+        <link title="{{ instance_name }}" type="application/opensearchdescription+xml" rel="search" href="{{ url_for('opensearch') }}"/>
         {% endblock %}
         {% endblock %}
     </head>
     </head>
     <body>
     <body>