When from a page , I goto another page via some hyperlink,is there any way to go back to the previous page. The previous page has some arguments also. SO I want to ask whether the previous page is saved somewhere or is there any other way to go back to that page
In http there is a header field called "referrer". If present it point to the previous page. You can access it from web2py:
if request.env.http_referer:
redirect(request.env.http_referer)
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With