When from a page I iterate over another page through some hyperlink, is there any way to return to the previous page. The previous page also has some arguments. I want to ask if the previous page is saved somewhere or is there another way to return to this page.
There is a header field in http called "referrer". If present, it points to the previous page. You can access it from web2py:
if request.env.http_referer: redirect(request.env.http_referer)
, , , . , - :
if session.back: redirect_url = session.back else: redirect_url = URL() # create form, do stuff, etc. if form.accepts(request.vars.session): session.back = None else: session.back = request.env.http_referer
Source: https://habr.com/ru/post/1781461/More articles:ok where should i create dynamic controls - c #Проблема Netezza SQL - выпуск месяца - netezzamysql join table - select a new row - sqlIn Eclipse, can I run an application in multiple emulators at the same time? - androidBasic C # GUI Event Handling Issues - user-interfaceThe button does not want to call the method (ASP.NET - C #) - c #Using C #, how can I read the contents of dynamically generated text fields? - c #How to debug (make a page look like Firefox) CSS in IE? - debuggingмногопоточный доступ к переменной - multithreadingQMAKE_EXTRA_COMPILERS - проблемы с зависимостями между файлами заголовка - c++All Articles