0

I wanna get the url that has been redirected, for example, if I'm trying to open my wishlist and it redirect me to login page, I wanna get the wishlist url.

I want the link that I type in the browser, that is redirected.

Magento 1.9

3
  • For which version of magento
    – Aman Alam
    Commented Jul 2, 2017 at 0:10
  • Let me know what exat possition or where u would like open u wishlist so that I can guide u Commented Jul 2, 2017 at 16:01
  • what I want is, enable the posibility to do this: add product to wishlist -> login is prompted -> when I've logged in I get redirected to wishlist in my account with the product added. Rigth now i get redirected to wishlist but without the product added. I'm trying to send the wishlist url of the product as a url to return after login.
    – jacr1614
    Commented Jul 2, 2017 at 16:07

1 Answer 1

0

I can got it in the method "setRedirect" in the class Mage_Core_Controller_Response_Http in Mage/Core/Controller/Response/Http.php, then, I was cloned that class to do the modifications I need.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.