def update_redirect(self):
page_history = Stack(session.get("<STR_LIT>", []))<EOL>page_history.push(request.url)<EOL>session["<STR_LIT>"] = page_history.to_json()<EOL>
Call it on your own endpoint's to update the back history navigation.
If you bypass it, the next submit or back will go over it.