Lost Password URL Breaks
-
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 https://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
- The topic ‘Lost Password URL Breaks’ is closed to new replies.