I am making a simple web app that opens a url on entering a query. I am using the bottle framework in Python. The problem I am facing is as follows:
I have two URL handlers, one for /
and other for /process
. When the user enters a query through a form on /
, the form action goes to /process
which then processes the query and opens a particular url using window.open(url, "_self")
. Now when the user hits the back button in the browser, /process
is called again with the same query, which then again loads the same url. Instead of this, I want it to go /
when the back button is pressed. How can I do this? Thanks.
EDIT : I did not notice this before but the above undesired behavior is found in Firefox but not in Chrome.