Reputation: 340
It should be trivial, but cannot find a correct way. Even if default is "/admin" I would like not to hardcode as it might change in future.
Obviously, these variants are incorrect:
Mage::getUrl('admin');
Mage::helper('adminhtml')->getUrl('admin');
UPD:
It seems some clarification is needed. Right now I have this url to my admin panel:
http://sample.com/admin
but later I might have to change it to
http://sample.com/backend
and would like to keep my link generating code untouched.
Upvotes: 1
Views: 3468
Reputation: 1175
From the following url you will find different way to get Admin specific url http://www.codexpedia.com/magento/magento-getting-the-admin-panel-urls/
Upvotes: 0