What I did was to have two links generated: redirect(URL('default','user',args='login',vars=dict(_next=URL(args=request.args, vars=request.vars)))) redirect(URL('default','user',args='register',vars=dict(_next=URL(args=request.args, vars=request.vars))))
And on the separate pages (login vs register), do a view source, search for "_next". The post-login vs post-register redirects are as reflected in the _next in the source code, which, for: - register - the _next is correctly reflected - login - the _next is not correctly reflected Hope that explained well. Thanks for assisting! On Monday, June 30, 2014 9:23:57 PM UTC+8, Anthony wrote: > > Can you show the code or explain how you are adding the _next variable? > What does the final URL look like? > > Anthony > > On Monday, June 30, 2014 6:38:29 AM UTC-4, lyn2py wrote: >> >> Thanks Annet for the reply. >> >> I did not use the function you mentioned, auth.login_next(). >> >> I specifically only used _next, which is in the URL (as vars). Which, >> according to your reply, should be the priority/overriding post-login >> redirect, is that correct? >> >> -- 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 web2py+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/d/optout.