Ticket #5496 (closed Bug: fixed)
Bug in login_success
| Reported by: | mtiller | Owned by: | plonista |
|---|---|---|---|
| Priority: | minor | Milestone: | 2.1.3 |
| Component: | Infrastructure | Keywords: | |
| Cc: |
Description
In Plone 2.1.2 I found a problem with the "login_success" template. If you "came_from" somewhere else (as indicated by the presence of the "came_from" argument) then things are OK. But if you didn't, the code looks like this:
<p tal:condition="python:not came_from">
<a href=""
tal:attributes="href came_from" i18n:translate="label_login_continue_to_home_page">
Continue to the <span tal:content="portal/title" i18n:name="portal_title">
portal title
</span> home page </a>
</p>
Obviously, if came_from isn't set then the href value does not make sense. I simply changed this to:
<a href=""
tal:attributes="href portal_url" i18n:translate="label_login_continue_to_home_page">
and it works fine.
