def login_to_url():
auth.settings.login_next=URL(request.args(0),request.args(1))
logger.warning(auth.settings.login_next)
redirect(URL('default','user',args='login'))def user():
logger.warning(auth.settings.login_next)
return dict(form=auth())What could be the reason the following code wouldn't redirect to the appropriate URL after login? (still brings to default/index page)def login_to_url():
auth.settings.login_next=URL(request.args(0),request.args(1))
logger.warning(auth.settings.login_next)
redirect(URL('default','user',args='login'))
def login_to_url():
login_next = URL(request.args(0), request.args(1))
redirect(URL('default','user', args='login', vars=dict(_next=login_next)))--
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 a topic in the Google Groups "web2py-users" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/web2py/lSvOD-GXM_k/unsubscribe.
To unsubscribe from this group and all its topics, send an email to web2py+un...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/web2py/1457f394-aa1a-458c-935d-e6ddf4888e24%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.