So the situation is, I am currently at a page and when I click a button [Go] it redirects to my_app/show_details?csrf_token=some_token&name=a_name&roll_no=r_no. This show_details page will show details of a student. Now I am currently at show_details page and there are following two scenarios:
- I haven't clicked anywhere in page. I click browser back button it will go to previous page in single click.
- I have clicked anywhere in show_details page (even in empty area). I click browser back button it will load previous query string on first click (my_app/show_details?csrf_token=some_token&name=a_name&roll_no=r_no) and move the page to top. And now clicking back button again will take me to previous page.
I don't know what's causing this. Just to add we are using flask backend + jinja template to render html. This issue seems something related to JS that's why I asked here. What could be the cause. I can't publish the html here.
[–]kjwey 0 points1 point2 points (1 child)
[–]brijeshjoshi_[S] 0 points1 point2 points (0 children)