It should be fixed. Is it not?

On Tuesday, 1 July 2014 03:20:30 UTC-5, lyn2py wrote:
>
> I just saw this post, and it explains the issue I'm facing. I guess will 
> wait for the patch.
>
> https://groups.google.com/forum/#!topic/web2py/e5eNdZnW4uc
>
> My version:
> 2.9.5-trunk+timestamp.2014.06.14.10.06.38
> (Running on Rocket 1.2.6, Python 2.7.1)     
>
> On Tuesday, July 1, 2014 11:36:00 AM UTC+8, Anthony wrote:
>>
>> The code you have shown would not show up in the HTML page source -- they 
>> are calls to the redirect() function, which happens server side. You might 
>> need to show more context to indicate where/when those redirect calls 
>> happen.
>>
>> Anthony
>>
>> On Monday, June 30, 2014 9:02:59 PM UTC-4, lyn2py wrote:
>>>
>>> What I did was to have two links generated:
>>>
>>> redirect(URL('default','user',args='login',vars=dict(_next=URL(args=request.args,
>>>  
>>> vars=request.vars))))
>>> redirect(URL('default','user',args='register',vars=dict(_next=URL(args=request.args,
>>>  
>>> vars=request.vars))))
>>>
>>> And on the separate pages (login vs register), do a view source, search 
>>> for "_next". The post-login vs post-register redirects are as reflected in 
>>> the _next in the source code, which, for:
>>>
>>>    - register - the _next is correctly reflected
>>>    - login - the _next is not correctly reflected
>>>
>>> Hope that explained well. Thanks for assisting!
>>>
>>> On Monday, June 30, 2014 9:23:57 PM UTC+8, Anthony wrote:
>>>>
>>>> Can you show the code or explain how you are adding the _next variable? 
>>>> What does the final URL look like?
>>>>
>>>> Anthony
>>>>
>>>> On Monday, June 30, 2014 6:38:29 AM UTC-4, lyn2py wrote:
>>>>>
>>>>> Thanks Annet for the reply. 
>>>>>
>>>>> I did not use the function you mentioned, auth.login_next(). 
>>>>>
>>>>> I specifically only used _next, which is in the URL (as vars). Which, 
>>>>> according to your reply, should be the priority/overriding post-login 
>>>>> redirect, is that correct?
>>>>>
>>>>>

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

Reply via email to