Hi Trevor,
The following button works for me:
<p class="text-center"><a class="btn btn-default"
onclick="javascript:openwindow('{{=URL('cms', 'default', 'user',
args=['login', request.args(0)], vars=dict(nxt=URL('cms', 'group',
'connect', args=[request.args(0), request.args(1)])))}}', 'connect')"
role="button">Login</a>
In cms/default/user
if request.args(0) == 'login':
if request.vars.nxt:
session.nxt = request.vars.nxt
In cms/default/my_login
if session.nxt:
redirect(session.nxt)
else:
redirect(URL('index'))
I hope this is helpful.
Annet
--
Resources:
- http://web2py.com
- http://web2py.com/book (Documentation)
- http://github.com/web2py/web2py (Source code)
- https://code.google.com/p/web2py/issues/list (Report Issues)
---
You received this message because you are subscribed to the Google Groups
"web2py-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
For more options, visit https://groups.google.com/d/optout.