Sorry for this basic question but I don't why the hyperlink is not working:
<a href="{{redirect(URL('DBInsert'))}}">New DB Insert</a>What I want is to redirect to this URL when the link is clicked, but when I load the page it automatically redirects. I have experienced this with other HTML tags too. Can somebody please explain why the Python code is executed before the user clicks the link? And the correct web2py way of doing it. Thank you.

