Fixed redirect bug for Magento Enterprise