Anthony, I did try with URL('profile', 'index') but got some looping error which Firefox picked up…
#controllers/profile.py def index(): return dict() On Wed, Feb 20, 2013 at 5:33 AM, Anthony <abasta...@gmail.com> wrote: > OK, it would help then if you (a) show the links as well as the code that > produces them, and (b) describe what is happening instead of the expected > behavior. Note, if your profile function is in a separate "profile.py" > controller, then URL('profile') may not generate the URL you need -- if you > only pass one argument to URL(), it assumes it is the function name (and > defaults to the application and controller of the current request). > > Anthony > > > On Tuesday, February 19, 2013 11:01:58 AM UTC-5, Alec Taylor wrote: >> >> I'm not using auth.navbar(). >> >> On Wed, Feb 20, 2013 at 1:46 AM, Anthony <abas...@gmail.com> wrote: >> > If you are using auth.navbar(), by default it adds a _next variable to >> > the >> > auth URLs that redirects back to the page where the navbar link was >> > clicked. >> > The _next variable overrides the auth.settings.[action]_next settings, >> > which >> > are only meant as fallbacks in case there is no _next referrer. If you >> > don't >> > want auth.navbar() to add the _next variable by default, you can pass it >> > the >> > referrer_actions argument, which is a list of actions for which you do >> > want >> > the _next variable (so, just leave 'login' out of that list, or set it >> > to >> > None if you never want the _next variable). >> > >> > Anthony >> > >> > >> > On Monday, February 18, 2013 1:39:30 AM UTC-5, Alec Taylor wrote: >> >> >> >> How do I redirect to a different page on login? >> >> >> >> Here's what I've tried: auth.settings.login_next = URL('profile') >> >> >> >> Thanks for all suggestions, >> >> >> >> Alec Taylor >> > >> > -- >> > >> > --- >> > 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+un...@googlegroups.com. >> > For more options, visit https://groups.google.com/groups/opt_out. >> > >> > > > -- > > --- > 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/groups/opt_out. > > -- --- 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/groups/opt_out.