Is there a reliable way in magento to redirect to the last page.
I have a small form that i want to redirect to the previous page if an error occurred.
The form sits on the product page and redirects to another page when completed successfully. However, I would like to redirect back to the product page if an error occurred.
My action url is
Also when i say reliable, i mean that
redirectReferer cant be relied on