I've not tested it, but there's a misunderstanding here I think.
Say that "URL() gets the extension from the current request if not
specified" is true. This is generally "wanted" because links in a LOADed
portion of the frame must not contain the whole layout.
But I think you want a LOADed form to submit and redirect to a "full" page
(i.e. with fully loaded layout). This means to load in a portion of the
page a form and when submit redirect to another page, not "retaining" the
one that loaded the form in the first place.
i.e. in the browser address bar you want to jump from /index - where /sub2
is loaded - to /sub3 that will redirect to /index2
vs
being stuck to /index
This is not the default behaviour and is managed by the ajax_trap
parameter, that is assumed to be True for ajax=True.
Did you try your code with ajax=True and ajax_trap=False ?
On Friday, July 27, 2012 8:43:07 PM UTC+2, mweissen wrote:
>
> I have tried:
> redirect(URL('index2',vars={'text':request.vars.text}, extension=False))
> Sorry, the same result - index2 is "loaded".
>
>
> 2012/7/27 Bruno Rocha <[email protected]>
>
>> put extension=False in URL
>>
>> redirect(URL('index2',extension='html',vars={'text':request.vars.text},
>> extension=False))
>>
>>
>>
>
--