diff --git a/app/code/core/Mage/Customer/controllers/AddressController.php b/app/code/core/Mage/Customer/controllers/AddressController.php index 0493cbff974..f8ae1efb3fe 100644 --- a/app/code/core/Mage/Customer/controllers/AddressController.php +++ b/app/code/core/Mage/Customer/controllers/AddressController.php @@ -151,9 +151,11 @@ public function formPostAction() $this->_getSession()->setAddressFormData($this->getRequest()->getPost()) ->addException($e, $this->__('Cannot save address.')); } + + return $this->_redirectError(Mage::getUrl('*/*/edit', ['id' => $address->getId()])); } - return $this->_redirectError(Mage::getUrl('*/*/edit', ['id' => $address->getId()])); + $this->_redirectReferer(); } /**