Forgot Password link redirects to wrong client's Application Login URI

We have 2 “Regular Web Applications” set up in a single tenant- “Wholesale” and “Wholesale 1.x”. When I click the Forgot Password link or send a change password email using the API change_password endpoint for the “Wholesale 1.x” app, it redirects to the Application Login URI that is configured for “Wholesale” instead of “Wholesale 1.x”.

I checked the configuration of both apps and everything seems to be in order. Could this be a bug?