def get_redirect(self):
index_url = self.appbuilder.get_url_for_index<EOL>page_history = Stack(session.get("<STR_LIT>", []))<EOL>if page_history.pop() is None:<EOL><INDENT>return index_url<EOL><DEDENT>session["<STR_LIT>"] = page_history.to_json()<EOL>url = page_history.pop() or index_url<EOL>return url<EOL>
Returns the previous url.