how to redirect to the same page after refresh in flask code example Example: how to redirect in flask to the same page return redirect(request.referrer)