return to same route flask code example
Example 1: how to redirect in flask to the same page
return redirect(request.referrer)
Example 2: flask app.route
@app.route("/route/to/page")
def what_to_display_when_someone_goes_here():
return("Whatever.")