1
Mage::getSingleton('core/session')->addSuccess('Your inquiry was submitted and will be responded to as soon as
possible. Thank you for contacting us.');
$this->_redirect('*/*/');
return;
1
  • You can try this $this->_redirect('/carrer.html'); instead of $this->_redirect('*/*/'); – Sukumar Gorai Jun 19 '19 at 9:28
0

Try This :-

$url=Mage::getUrl('landing-page'); //page url key

Mage::app()->getFrontController()->getResponse()->setRedirect($url); 
exit();
1
  • Not working for me.....url convert to "localhost/project/career/index/post/" and give blank response – Pranav Patel Jun 19 '19 at 7:16
0

Please try with below code :

$this->_redirectUrl(Mage::getBaseUrl().'cms-page-Identifier');
0

Try the below code:

Mage::getSingleton('core/session')->addSuccess('Your inquiry was submitted and will be responded to as soon as
possible. Thank you for contacting us.');
$this->_redirect('/carrer.html');
return;

instead of

Mage::getSingleton('core/session')->addSuccess('Your inquiry was submitted and will be responded to as soon as
possible. Thank you for contacting us.');
$this->_redirect('*/*/');
return;

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.