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?
Have you tried adminhtml instead of admin?
Mage::app()->getResponse()->setRedirect(Mage::helper('adminhtml')->getUrl("adminhtml/sales_order/view", array('order_id'=>'1')));
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With