" Instead, perhaps we can just improve the documentation. "

Yes, it would be great if the documentation were changed to something like 
your explanation below, but clearer on the navbar bit. I believe you 
concluded back in July that the documentation could be clearer.

"you just have to set the referrer_actions argument to auth.navbar() 
appropriately"

auth.navbar(referrer_actions=None)

did not work for Rob or for myself.
Peter

On Wednesday, 14 November 2012 19:27:35 UTC, Anthony wrote:
>
> If setting auth.user.settings to a URL stopped the bit of code that 
>> generates _next when default/user/register is 'called' then it would seem 
>> to fit in with developers expectations. 
>>
>
> Keep in mind, currently it is possible to enable referrers (i.e., the 
> _next parameter in the URLs) while specifying a default redirect in case 
> there is no referrer (i.e., via auth.settings.login_next). If we change the 
> behavior, then we lose this capability and are limited to referrers only 
> (with no default redirect) or a single fixed default only (with no 
> referrers). So, we would be breaking backward compatibility and losing 
> functionality. Instead, perhaps we can just improve the documentation. I 
> don't think it's that complicated. Redirects from Auth pages are controlled 
> via two methods: the _next parameter in the URL, and the 
> auth.settings.[action]_next settings, with the former taking precedence. If 
> you instead prefer the latter to take precedence, you just have to set the 
> referrer_actions argument to auth.navbar() appropriately (or avoid using 
> auth.navbar() altogether).
>
> Anthony
>

-- 



Reply via email to