• Resolved cdukes

    (@walkinonwat3r)


    Hi,

    I noticed that completing the WC lost password form redirects to /lost-password/ (instead of /my-account/lost-password/), and the lost password email’s PW reset URL is just “lost-password/…”.

    It looks like your plugin is causing this in class-wcml-endpoints.php:filter_get_endpoint_url(). From what I can tell, it’s expecting a string translation for the WC lost-password endpoint to be set in the WPML UI? If so, I’m not sure what to put there – I’ve tried the http://example.com/my-account/lost-password/ and just /my-account/lost-password/, but neither work.

    Maybe you should not override the endpoint URL if no translation is set?

    For now, I’ve commented out the “$url = wc_get_endpoint_url( $translated_lost_password_endpoint );” line, which fixes the immediate problem.

    Thanks

    • This topic was modified 6 years, 8 months ago by cdukes.
Viewing 1 replies (of 1 total)
Viewing 1 replies (of 1 total)
  • The topic ‘Lost Password URL Breaks’ is closed to new replies.