Abhijeet kumar sharma Abhijeet kumar sharma - 1 year ago 249
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 ?

Answer Source

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.

Recommended from our users: Dynamic Network Monitoring from WhatsUp Gold from IPSwitch. Free Download