I have a multi language web, and I need to redirect from the controller to the actual language of the web.

So $this->_redirectURL('/foo/'); now is redirecting to example.com/foo/ but I need to redirect to example.com/en/foo/

How to introduce the code language in the url redirection?


Try this:

$url = Mage::getUrl('', array('_direct'=>'foo'));

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.