#2371: post_login in new project should not call tg.url() when calling
redirect()
------------------------+---------------------------------------------------
Reporter: xavid | Owner:
Type: defect | Status: new
Priority: normal | Milestone: 2.0
Component: TurboGears | Version: 2.0.1
Severity: normal | Keywords:
------------------------+---------------------------------------------------
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.
--
Ticket URL: <http://trac.turbogears.org/ticket/2371>
TurboGears <http://www.turbogears.org/>
TurboGears front-to-back web development
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google
Groups "TurboGears Tickets" group.
This group is read-only. No posting by normal members allowed.
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/turbogears-tickets?hl=en?hl=en
-~----------~----~----~----~------~----~------~--~---