Skip to content
Snippets Groups Projects
Commit 4cd57741 authored by Mark Skipper's avatar Mark Skipper
Browse files

Redirect to login after logout

parent 23548c4d
Branches
No related tags found
No related merge requests found
...@@ -3,6 +3,6 @@ ...@@ -3,6 +3,6 @@
{% block maincontent %} {% block maincontent %}
<p>{% trans "This is the dashboard page." %}</p> <p>{% trans "This is the dashboard page." %}</p>
<p><a href="{% url "logout" %}">{% trans "Log out" %}</a></p> <p><a href="{% url "logout" %}?next={% url 'login' %}">{% trans "Log out" %}</a></p>
{% endblock maincontent %} {% endblock maincontent %}
\ No newline at end of file
{% extends "base.html" %}
{% load i18n %}
{% block maincontent %}
<h1>{% trans "Logged out" %}</h1>
<p>
You are logged out.
<a href="{% url "login" %}">{% trans "Log in again." %}</a>
</p>
{% endblock maincontent %}
\ No newline at end of file
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment