Menu Close
    Hire us Request quote Reading list Switch to dark mode

    Redirect to a page after ajax request Magento2

    If you send an ajax request and want to redirect your controller to a particular controller , or if you want to redirect back to previous page, then you can follow following code:


    After your ajax request code, it redirects you to customer/account page.

    Thank you.

    . . .

    Comment (1)

    Add Your Comment

  • Ankit Shah
    How can we achieve same thing in Observer?
  • Back to Top
    css.php
    Hire Us!
    Brief us about your requirements and we'll get back to you.
    Woo! Hooy!
    We have just received your message and our expert will get back to you shortly.
    Send Again
    Close