#55 Logout link in rightsidebar theme has incorrect url.

closed
nobody
None
5
2004-07-04
2004-06-08
Maciej Starzyk
No

There is a bug in the rightsidebar theme.
url_prefix is not prepended to the "logout" url.
It always links to: /UserPreferences

Discussion

  • Maciej Starzyk
    Maciej Starzyk
    2004-06-08

    Logged In: YES
    user_id=657380

    Moin version: 1.2.2

     
  • Polzin
    Polzin
    2004-06-18

    Logged In: YES
    user_id=586666

    I fixed it (by changing line 80 of rightsidebar.py) although
    I don't know if its the best solution:

    *** rightsidebar.py 2004-06-06 01:58:33.000000000 +0200
    ---
    /usr/lib/python/site-packages/MoinMoin/theme/rightsidebar.py
    2004-06-18 13:14:50.000000000 +0200
    ***************
    *** 77,83 ****
    html.append('<br />')
    html.append('%s' %
    wikiutil.link_tag(self.request,
    wikiutil.quoteWikiname(d['page_user_prefs'])))
    html.append('<br /><br />')
    ! html.append('<form action="/UserPreferences"
    method="POST">')
    html.append('<input type="hidden"
    name="action" value="userform">')
    html.append('<input type="hidden"
    name="logout" value="Logout">')
    #html.append('<input type="image"
    name="Submit" value="Submit"
    src="http://cwhipple.info/crwiki/crw/img/logout.png"
    height="15" width="80" border="0">')
    --- 77,83 ----
    html.append('<br />')
    html.append('%s' %
    wikiutil.link_tag(self.request,
    wikiutil.quoteWikiname(d['page_user_prefs'])))
    html.append('<br /><br />')
    ! html.append('<form action="%s" method="POST">'
    % wikiutil.quoteWikiname(d['page_user_prefs']))
    html.append('<input type="hidden"
    name="action" value="userform">')
    html.append('<input type="hidden"
    name="logout" value="Logout">')
    #html.append('<input type="image"
    name="Submit" value="Submit"
    src="http://cwhipple.info/crwiki/crw/img/logout.png"
    height="15" width="80" border="0">')

     
  • Logged In: YES
    user_id=100649

    fixed in arch (will be in 1.2.3)

     
    • status: open --> closed