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 [email protected].
For more options, visit https://groups.google.com/groups/opt_out.