Thanks you for your patience Anthony to keep repeating the same thing over & over for some of us, my code is finally working, I think the magic is with *request.vars._next = None* because right after adding that line everything started happening as it should, I am able to redirect. Much appreciated.
Mostwanted On Thursday, January 10, 2019 at 4:36:21 PM UTC+2, Anthony wrote: > > auth.settings.login_next is just a default -- it is overridden if there is > a _next variable in the URL query string (which will be the case if the > user arrives at login page via the auth.navbar() menu). For options to > change this behavior, see > https://groups.google.com/d/msg/web2py/wKd5QN5R5fs/3v3JSqQOtrIJ and > https://groups.google.com/d/msg/web2py/wKd5QN5R5fs/3gwZqWSzQUcJ. > > Anthony > > On Thursday, January 10, 2019 at 5:21:22 AM UTC-5, mostwanted wrote: >> >> >> I would really appreciate it if someone would explain to me in very >> simple English & in a very straight & forward manner how to get >> *auth.settings.login_next >> = URL('function')* to work! >> Mine is not working and i have looked at every thread that explains it >> particularly this one >> https://groups.google.com/forum/?fromgroups=#!topic/web2py/wKd5QN5R5fs >> between Antony & and Dough Philips as well as this one >> https://groups.google.com/forum/#!topic/web2py/Dqhnnu2o8Dg by Rob_McC >> but its alot of words I dont understand partly because i have a very short >> attention span! I have *auth.settings.login_next = URL('function') *defined >> in my *db.py* and i hoped this was enough to redirect my user to the >> defined page at login but nothing is happening! >> >> What should i add where to get it to work?? >> >> Mostwanted >> > -- 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.