Browse Source

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

Matej Cotman 6 years ago
parent
commit
f623d65829

+ 1
- 1
searx/templates/oscar/preferences.html View File

300
         {{ _("These cookies serve your sole convenience, we don't use these cookies to track you.") }}
300
         {{ _("These cookies serve your sole convenience, we don't use these cookies to track you.") }}
301
         </p>
301
         </p>
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/>
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
         </p>
304
         </p>
305
 
305
 
306
         <input type="submit" class="btn btn-primary" value="{{ _('save') }}" />
306
         <input type="submit" class="btn btn-primary" value="{{ _('save') }}" />

+ 1
- 1
searx/templates/pix-art/preferences.html View File

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