#11466: Problem with 'logout', 'change password' links in contrib.admin 
interface
----------------------------------+-----------------------------------------
 Reporter:  gurunars              |       Owner:  nobody    
   Status:  new                   |   Milestone:            
Component:  django.contrib.admin  |     Version:  1.1-beta-1
 Keywords:                        |       Stage:  Unreviewed
Has_patch:  0                     |  
----------------------------------+-----------------------------------------
 '''Currently in ''"django/contrib/admin/templates/admin/base.html" ''
 there is a line:'''

 <div id="user-tools">{% trans 'Welcome,' %} <strong>{% firstof
 user.first_name user.username %}</strong>. {% block userlinks %}{% url
 django-admindocs-docroot as docsroot %}{% if docsroot %}<a href="{{
 docsroot }}">{% trans 'Documentation' %}</a> / {% endif %}<a href="{{
 root_path }}password_change/">{% trans 'Change password' %}</a> / <a
 href="{{ root_path }}logout/">{% trans 'Log out' %}</a>{% endblock
 %}</div>-->

 '''It should be replaced with:'''

 <div id="user-tools">{% trans 'Welcome,' %} <strong>{% firstof
 user.first_name user.username %}</strong>. {% block userlinks %}{% url
 django-admindocs-docroot as docsroot %}{% if docsroot %}<a href="{{
 docsroot }}">{% trans 'Documentation' %}</a> / {% endif %}<a href="/{{
 root_path }}password_change/">{% trans 'Change password' %}</a> / <a
 href="/{{ root_path }}logout/">{% trans 'Log out' %}</a>{% endblock
 %}</div>

 '''Reason:'''

 {{root_path}} variable does not contain a trailing slash. As a result,
 logout and change password links are relative, not absolute. It leads to
 404 error when using the links from the pages other then home one. The
 solution is to add a trailing slash in front of {{root_path}} variable.

-- 
Ticket URL: <http://code.djangoproject.com/ticket/11466>
Django <http://code.djangoproject.com/>
The Web framework for perfectionists with deadlines.
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"Django updates" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to 
[email protected]
For more options, visit this group at 
http://groups.google.com/group/django-updates?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to