Hi I'm trying to replace a link to a cms page "review" in a .phtml file like so:

<?php echo $this->getUrl('review'); ?>

But this returns www.mydomain/shop/review/ as "shop" is our store view code.

How can I change it to return www.mydomain/review/ ?

1 Answer 1


Try this

<?php echo $this->getUrl('review', array('_type'=>Mage_Core_Model_Store::URL_TYPE_DIRECT_LINK)); ?>

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge that you have read and understand our privacy policy and code of conduct.

Not the answer you're looking for? Browse other questions tagged or ask your own question.