[Moin-user] Tiny bug in rightsidebar.py

Sandip Bhattacharya sandip at lug-delhi.org
Mon Jul 19 14:52:03 EDT 2004

The rightsidebar theme plugin, always gives the URL of the current page for 
the site name at the top. The expected behavior is to go to the frontpage of 
the site when you click the sitename at the top. The problem can be solved 
simply replacing line 40 of the file rightsidebar.py (moin 1.2.2)

 html ='<div id="banner">\n<a id="bannertext" 
href="%(script_name)s">%(site_name)s</a>\n</div>\n' % d

 html ='<div id="banner">\n<a id="bannertext" 
href="%(page_front_page)s">%(site_name)s</a>\n</div>\n' % d

In short just change "script_name" with "page_front_page" there.

- Sandip

Sandip Bhattacharya
sandip (at) puroga.com
Puroga Technologies Pvt. Ltd.
Work: http://www.puroga.com        Home: http://www.sandipb.net

GPG: 51A4 6C57 4BC6 8C82 6A65 AE78 B1A1 2280 A129 0FF3

More information about the Moin-user mailing list