I am working on a custom module. I am trying to redirect my module to the category page of the magento directory. link to the page
http: //localhost/project/index.php/admin/catalog_category/index/key/cc65595b0383ca64fb245cb7de2359d8/
I tried the following methods without success.
$this->_redirect($this->getUrl("admin/catalog_category/")); $this->_redirect("admin/catalog_category/");
$this->_redirect($this->getUrl("admin/catalog_category/"));
$this->_redirect("admin/catalog_category/");
Magento removes admin from url? final url looks like this
http: //localhost/project/index.php//catalog_category/index/key/cc65595b0383ca64fb245cb7de2359d8/
I did not understand why the administrator is skipping my url? can anyone help?
Try entering a code.
$this->_redirect("adminhtml/catalog_category");
The first URI (i.e. adminhtml) is the name of the module, and for the administration area, the name of the module is adminhtml.