<SYSTEM_TASK:>
Solve the following problem using Python, implementing the functions described below, one line at a time
<END_TASK>
<USER_TASK:>
Description:
 def update_redirect(self):
 """ 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. """

        page_history = Stack(session.get("page_history", []))
        page_history.push(request.url)
        session["page_history"] = page_history.to_json()