Capture the URL from which the user just arrived then redirect them back to that URL on form submission.
Redirect to Referrer URL after Gravity Form Submission
Capture the URL from which the user just arrived then redirect them back to that URL on form submission.