If the page submits to itself, then at that point it is its own Referrer.
You could try saving the Referrer into a hidden field and submitting it with the form to use as the redirect. Another option is to save a session variable on any page that might have linked to this page and redirect using it.