I want to get the previous action name though previous url already find some how but previous action name is not find yet. previous url name get like this.
$this->getRequest()->getHeader('Referer')->getUri();
I don't find action name but I could find like /controller_name/action_name
using this code
$this->getRequest()->getHeader('Referer')->uri()->getPath();
It could also be be helpfull for me.
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