How did you get to this URL: 
http://localhost:8000/newapp/default/user/login?_next=/newapp/default/index?

auth.settings.login_next does not work by adding a _next variable to URLs 
(in that case, it would only have an effect in generating URLs). Rather, it 
is the default post-login redirect URL in case there is no _next variable 
in the URL. If you want to redirect to auth.settings.login_next, just make 
sure you don't provide any login links that include a _next variable in the 
URL. I believe the only functionality in web2py that does automatically add 
the _next variable is auth.navbar() (which is used to provide the 
login/register links in the scaffolding app UI).

Anthony

On Friday, February 22, 2013 3:31:19 PM UTC-5, Alan Etkin wrote:
>
> Anthony, I did try with URL('profile', 'index') but got some looping 
>> error which Firefox picked up… 
>>
>
> I tried a bare new app with Version 
> 2.4.1-alpha.2+timestamp.2013.02.22.10.18.20
>
> Added this line below the default auth.settings section in db.py
>
> auth.settings.login_next = URL("blah")
>
> This is the url as shown in the browser address bar when you open the 
> default login action:
>
> http://localhost:8000/newapp/default/user/login?_next=/newapp/default/index
>
> I did not use navbar, unless it is enabled by default. I think that  the 
> _next parameter should be the specified with .login_next
>  
>

-- 

--- 
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.


Reply via email to