getFormAction() return null value contact form magento

It may happen if we try to load contact form through a static block or cms .

When you  do so make sure that you have included ‘  form_action=”/contacts/index/post ‘ .ie The code will

be

{{block type=”core/template” name=”contactForm” form_action=”/contacts/index/post” template=”contacts/form.phtml”}}

But when we submit the contact form , the page will be redirected to the original contact form

“magento/contacts/ ” after sending the mail . To fix that we should  override the function “postAction” in

/var/www/html/app/code/core/Mage/Contacts/controllers/IndexController.php and edit the code

“$this->_redirect(‘*/*/’);” at line number 113 with the page url . ie for eg :

“$this->_redirect(‘contatcs’)