0

I need a help regarding http request or ajax call,

I am trying to open forgot password page in popup,I have loaded widget model popup and it is working as expected.

Now I am trying to reset password, when I try to reset password then it's redirected to my custom controller and not returning to page, in URL appended "Undefined".

I thought it's issue of "customer/section/load/" so I've added custom controller in the section.xml file and it is reloaded

<action name="accountmtr/customer_ajax/forgot">
        <section name="checkout-data"/>
        <section name="cart"/>
        <section name="customer"/>
    </action>

but this solution is not working,url is look like "https://example.com/undefined"

I have check the logs but no any exception found in the logs

could you please help me on this?

4
  • Have you defined accountmtr as a routes id in /etc/frontend/routes.xml for the controller? Commented Sep 10, 2023 at 13:36
  • Yes I have defined accountmtr id routes.xml file <route id="accountmtr" frontName="accountmtr "> <module name="Customext_CustomerExtend"/> </route> For login and signup it is working fine Commented Sep 10, 2023 at 16:30
  • I debug and found this cause, In another module there is custom js file and there one of variable has not appending a value and it pass on to href, so that''s the reason it's adding 'undefine' to URL Commented Sep 12, 2023 at 7:21
  • Okay, Great.... Commented Sep 12, 2023 at 7:32

0

Your Answer

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