5

I am working on custom module. I try to redirect my module to magento catalog category page. The link for the page is

http://localhost/project/index.php/admin/catalog_category/index/key/cc65595b0383ca64fb245cb7de2359d8/

I have tried following methods without success.

$this->_redirect($this->getUrl("admin/catalog_category/")); $this->_redirect("admin/catalog_category/");

Magento is removing admin from url ? final url look like that

http://localhost/project/index.php//catalog_category/index/key/cc65595b0383ca64fb245cb7de2359d8/

I didn't figure out why admin is skipping from my url ? can anyone help ?

4

1 回答 1

3

试试下面的代码。

$this->_redirect("adminhtml/catalog_category");

第一个 URI(即 adminhtml)是模块名称,对于管理区域,模块名称是 adminhtml。

于 2013-03-26T05:15:01.193 回答