The redirect would go in the /error/default/index controller action. It 
sends a 200 response to the browser with a special header instructing 
web2py.js to do a client-side redirect (i.e., load a new URL in the address 
bar).

Anthony

On Friday, March 16, 2018 at 5:25:10 AM UTC-4, Annet wrote:
>
> Hi Anthony,
>
> Thanks for your reply.
>
>
> Have you tried redirect(..., client_side=True) in your error handler?
>>
>
>
> The error handler  error/default/index contains the following lines of 
> code:
>
>
> def index():
>     session.forget(response)
>
>     response.title = 'Leonexus - Error handler'
>
>     return dict()
>
>
> I do not have a line redirect(..., client_side=True) in my code. Is it 
> possible to add 
> client_side = True to error_handler in routes.py
>
> error_handler = dict(application='error',
>                      controller='default',
>                      function='index',
>                      client_side = True)
>
>
> Kind regards,
>
> Annet
>

-- 
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 [email protected].
For more options, visit https://groups.google.com/d/optout.

Reply via email to