Ignore:
Timestamp:
Mar 19, 2012, 11:13:56 PM (14 years ago)
Author:
Alex Dehnert <adehnert@…>
Branches:
master, space-access, stable, stage
Children:
b8a9c68
Parents:
3437855
git-author:
Alex Dehnert <adehnert@…> (03/19/12 23:13:56)
git-committer:
Alex Dehnert <adehnert@…> (03/19/12 23:13:56)
Message:

Redirect back to page on login (Trac #68)

See also
http://stackoverflow.com/questions/806835/django-redirect-to-previous-page-after-login.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • asadb/template/base.html

    r3437855 rcec082b  
    2929            {% else %}
    3030                <p>You are not logged in.</p>
    31                 <p><a href='{% url login %}'>Login</a></p>
     31                <p><a href='{% url login %}?next={% firstof request.path '/' %}'>Login</a></p>
    3232            {% endif %}
    3333        </div>
Note: See TracChangeset for help on using the changeset viewer.