Abhijeet kumar sharma Abhijeet kumar sharma - 2 months ago 12x
PHP Question

How to set external URL link to Magento admin menu

I am working on a module where I have created one menu in Magento admin using


Now I want to link one of the menu to an external URL and set
. But I'm not sure how to do it in
. Here is my code.

<?xml version="1.0"?>
<convert translate="title">
<importmagmi translate="title" module="importexport">
<title>MagMi Importer</title>
<action><url helper="https://externalurl.com"/></action>

When i am checking its adding current domain name before external url. ex: http://mydomainname.com/https://externalurl.com

I am wondering how to set only external URL ?


Inside <action> tag you can put module/controller/action of your module.

Then create this action and put something like this:

public function locationAction()

See Mage_Core_Controller_Varien_Action::_redirectUrl for the standard redirect implementation in Magento controller actions.