Magento – How to redirect to previous page

Sometimes you will want to redirect to previous page after executing a function. 

You can try this:

$this->_redirectReferer();

It does a little more than redirect to the previous page. If you specify in the url a parameter uenc it will consider that as the referrer.

Revisions

No comments yet.

Leave a Reply