Use relative path in templates instead of full pathes

This fixes problems with HTTP/HTTPS mixing
This commit is contained in:
Jan Böhmer 2022-08-04 21:00:42 +02:00
parent 4c4b610daa
commit 92e477775a
9 changed files with 14 additions and 14 deletions

View file

@ -24,5 +24,5 @@
<div id="u2fError" style="display: none;" class="text-center h4"></div>
</form>
<a href="{{ url('user_settings') }}">{% trans %}tfa_u2f.add_key.back_to_settings{% endtrans %}</a>
<a href="{{ path('user_settings') }}">{% trans %}tfa_u2f.add_key.back_to_settings{% endtrans %}</a>
{% endblock %}

View file

@ -61,6 +61,6 @@
</form>
{% if allow_email_pw_reset %}
<a class="offset-sm-2" href="{{ url('pw_reset_request') }}">{% trans %}pw_reset.password_forget{% endtrans %}</a>
<a class="offset-sm-2" href="{{ path('pw_reset_request') }}">{% trans %}pw_reset.password_forget{% endtrans %}</a>
{% endif %}
{% endblock %}