X-Git-Url: https://git.mdrn.pl/redakcja.git/blobdiff_plain/f938afb8ab4cb091d12e0ef0311eaea14b774798..e5ba4e015ad743e8581275272c61a660f32d9fed:/redakcja/templates/registration/head_login.html diff --git a/redakcja/templates/registration/head_login.html b/redakcja/templates/registration/head_login.html index f051213a..64bd3e7e 100644 --- a/redakcja/templates/registration/head_login.html +++ b/redakcja/templates/registration/head_login.html @@ -2,7 +2,7 @@ {% if user.is_authenticated %} <span class="user_name">{{ user.username }}</span> | -<a href='{% url logout %}'>{% trans "Log Out" %}</a> +<a href='{% url logout %}{% if logout_to %}?next={{ logout_to }}{% endif %}'>{% trans "Log Out" %}</a> {% else %} {% url login as login_url %} {% ifnotequal login_url request.path %}