[Seaside] Redirect to the previous page
patmaddox at me.com
Mon Jan 24 17:07:58 UTC 2011
On Jan 21, 2011, at 12:28 PM, Sebastian Van Lacke wrote:
> Thanks Sebastian,
> In my website log in is optional, so I can´t dispatch to the login or the application.
> I have a link at the top of all the pages for login, and when the user click it, I announce that Login was selected, and the root component render it. Then, once the user has logged in I want to take it back to the previous page, where the user has clicked login.
> Any idea? Has the session the navigation history?
When you announce that Login was selected, can you hold onto the current component before telling the root component to Render login? Then when login completes, you announce SuccessfulLogin and have the root component render the component from before ("previous page").
More information about the seaside