I am using Magento 126.96.36.199. I need to prevent ratings in the frontend from saving after the reviews has been saved. So I have used the <reveiw_save_after> event in order to achieve it. But I am unable to stop the controller action from happening after the save event. Here is my code:
The observer is calling but the controller action is still executing. Is this the correct way to prevent the controller action?.
function preventAddRatings(Varien_Event_Observer $observer)
$app = Mage::app();
$request = $app->getRequest();
$app->getFrontController()->getResponse()->setRedirect($request->getBaseUrl() . $request->getPathInfo());