Web2py redirect

hi all!
I would like your help for redirect.
-default.py:

def Home():
        
        redirect(URL('default', 'index'))

-index htm:

 <INPUT type="button" value="Home" onclick="{{=URL(r=request,f='Home')}}"/>

-home.htm:

{{extend 'layout.html'}}
<h1>This is the default/Home.html template</h1>
{{=BEAUTIFY(response._vars)}}

This topic was automatically closed 91 days after the last reply. New replies are no longer allowed.