You are viewing an old revision of this post, from March 3, 2016 @ 18:11:10. See below for differences between this version and the current revision.

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

  • March 3, 2016 @ 18:11:10 [Current Revision] by admin
  • March 3, 2016 @ 18:11:10 by admin

Revision Differences

There are no differences between the March 3, 2016 @ 18:11:10 revision and the current revision. (Maybe only post meta information was changed.)

No comments yet.

Leave a Reply