Bläddra i källkod

fix(oscar,preferences): use base_url for prefix of sharing 'currenly saved preferences'

Matej Cotman 6 år sedan
förälder
incheckning
f623d65829
2 ändrade filer med 2 tillägg och 2 borttagningar
  1. 1
    1
      searx/templates/oscar/preferences.html
  2. 1
    1
      searx/templates/pix-art/preferences.html

+ 1
- 1
searx/templates/oscar/preferences.html Visa fil

@@ -300,7 +300,7 @@
300 300
         {{ _("These cookies serve your sole convenience, we don't use these cookies to track you.") }}
301 301
         </p>
302 302
         <p style="margin:20px 0;">{{ _('Search URL of the currently saved preferences') }} <small class="text-muted">({{ _('Note: specifying custom settings in the search URL can reduce privacy by leaking data to the clicked result sites.') }})</small>:<br/>
303
-          <input readonly="" class="form-control select-all-on-click cursor-text" type="url" value="{{ url_for('index', _external=True) }}?preferences={{ preferences_url_params|e }}{% raw %}&amp;q=%s{% endraw %}">
303
+          <input readonly="" class="form-control select-all-on-click cursor-text" type="url" value="{{ base_url }}?preferences={{ preferences_url_params|e }}{% raw %}&amp;q=%s{% endraw %}">
304 304
         </p>
305 305
 
306 306
         <input type="submit" class="btn btn-primary" value="{{ _('save') }}" />

+ 1
- 1
searx/templates/pix-art/preferences.html Visa fil

@@ -76,6 +76,6 @@
76 76
 
77 77
     <input type="submit" value="{{ _('save') }}" />
78 78
     <div class="{% if rtl %}left{% else %}right{% endif %} preferences_back"><a href="{{ url_for('index') }}">{{ _('back') }}</a></div>
79
-    </form>    
79
+    </form>
80 80
 </div>
81 81
 {% endblock %}