return redirect on post request