Background of the issue:
I am trying to send a 'Reset Password' link to a user from the admin panel in a language other than the main language. The main language of the website is French (FR). When I switch the admin panel to English (EN) and send the reset password link to the user, this issue occurs.
Symptoms:
The email contains a reset link like this: domainname.com/en/wp-login.php?login=...&action=rp&wp_lang=fr_FR, which returns a 404 error. However, if I manually remove the /en from the URL, it redirects correctly.
Questions:
Can you please help me understand how to fix the issue with the reset password link returning a 404 error when sent in a language other than the main language?
I see that you are on NGINX as well. Few of our clients with the same issue got this resolved after adding these rewrite rules to their NGINX settings.