Warning: Can't synchronize with repository "(default)" (Unsupported version control system "svn": No module named svn). Look in the Trac log for more information.

Ticket #2371 (closed defect: fixed)

Opened 10 years ago

Last modified 9 years ago

post_login in new project should not call tg.url() when calling redirect()

Reported by: xavid Owned by:
Priority: normal Milestone: 2.0.* bugfix
Component: TurboGears Version: 2.0.1
Severity: normal Keywords:
Cc: xavid@…


Currently, a line in the post_login method of the default root controller reads:

            redirect(url('/login', came_from=came_from, __logins=login_counter))

This is wrong, because redirect calls tg.url() on its argument internally. Having tg.url() called twice causes problems when the TurboGears app is running at somewhere other than the server root, say under Apache. The correct line is:

            redirect('/login', came_from=came_from, __logins=login_counter)

A patch (to tg.devtools/trunk) is attached.


tgpatch.diff Download (736 bytes) - added by xavid 10 years ago.

Change History

Changed 10 years ago by xavid


comment:1 Changed 10 years ago by Chris Arndt

  • Milestone changed from 2.0 to 2.* bugfix

comment:2 Changed 9 years ago by percious

  • Status changed from new to closed
  • Resolution set to fixed
Note: See TracTickets for help on using tickets.