This is the intended behavior.
for now you can do
instead of

   redirect(url)

use

   raise HTTP(303,**{'web2py-component-
command':'document.location="%s"'%url})


On Aug 5, 1:17 pm, Julius Minka <[email protected]> wrote:
> Having something like this
>
> {{=LOAD('controller','action.load',vars={},args=[],ajax=True)}}
>
> in the layout.html
> and something like this
>
> form=SQLFORM.factory(
>        Field(...),
>        Field(...),
>        Field(...),
>        formstyle='table2cols',submit_button='Vyhľadať')
> if form.accepts(request.vars, session):
>       redirect(URL(r=request,
>                 f='2action',vars={'typ':typ}))
>
> in action controlller.
>
> It almost works, but instead of redirection to '2action', it displays
> 2action page in the space where previously the form was. URL is not
> changed.
>
> Is this expected behaviour?
> How to correctly do real redirection to 2action page?
>
> Julius

Reply via email to