Can someone explain the star slash notation used throughout magento controllers for redirecting?
The use by core code seems to be inconsistent and I cant find any decent docs out there that can explain the most correct use of this notation.
In the event that there is any doubt over what i am asking.
It is this style of redirect:
$this->_redirect('/');
$this->_redirect('*/*/');
$this->_redirect('*/*');
From left to right:
When an asterisk is specified, it will use the -current- value of those above.
So assuming you are on adminhtml/catalog/list
page, a redirect to */*/something
will take you to adminhtml/catalog/something
, etc :)
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