0

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?

1

Try this:

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

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.