Use request.get_host rather than hardcoded server name

- Legacy-Id: 3876
This commit is contained in:
Ole Laursen 2012-01-30 19:04:00 +00:00
parent f92641bcb3
commit 6ae3a906b1

View file

@ -65,7 +65,7 @@ IETF.user_groups = {{ user|user_roles_json }};
<div id="ietf-login" class="noprint">{% if user.is_authenticated %}
{{ user }}
{% else %}
<a href="https://datatracker.ietf.org/accounts/login/?next={{request.get_full_path|urlencode}}" rel="nofollow">Sign In</a>
<a href="https://{{ request.get_host }}/accounts/login/?next={{request.get_full_path|urlencode}}" rel="nofollow">Sign In</a>
{% endif %}</div>
{% endif %}