How can I detect the URL and store it then use it on the Controller for Redirect. Can anyone help me with this?
Magento 1.9 – How to Get Previous URL and Redirect from Controller
ce-1.9.0.1controllersmagento-1.9redirecturl
Related Topic
- URL Redirect – How to Redirect to Form Submission Page from Controller
- Magento 2 Category URL Redirect to Custom Controller
- Magento-1.9 URL Controllers – Get Controller Name by Page URL in Magento 1.9
- Magento 2 Admin Controller – Redirect URL with Parameters
- Magento 2 – How to Redirect from Controller
- Magento 2 – Redirect to External URL from Controller
Best Answer
To get current URL in Magento use below code.
But i think your requirement is to get the previous URL & redirect from controller. If it so use below code.