Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Magento redirect to order view

I want to redirect user from my backend module to admin/order_sale/view, but i cant. When i use :

Mage::app()->getResponse()->setRedirect(Mage::helper('adminhtml')->getUrl("admin/sales_order/view", array('id'=>'1'))); 

Magento is cutting of 'admin' from URL so it looks like:

http://magento1702.local/index.php//sales_order/view/id/1/key/fdb6089cf1e5cd77f85f085def1a013a/

and i get 404 page. Any idea how to redirect to admin module in magento way?

like image 387
pbogut Avatar asked Oct 15 '12 12:10

pbogut


1 Answers

Have you tried adminhtml instead of admin?

Mage::app()->getResponse()->setRedirect(Mage::helper('adminhtml')->getUrl("adminhtml/sales_order/view", array('order_id'=>'1')));
like image 125
Alexei Yerofeyev Avatar answered Oct 02 '22 12:10

Alexei Yerofeyev