Twist redirect to back url method to work with JSON params.