previous_url

returns previous URL using EE->session. Useful for redirects.