No redirect after password reset when triggered from authentication API

Following the directions from Redirect to login after changing password and setting the Redirect To field appropriately on the Change Password template, we are able to get redirects working when the password reset request is triggered from the login page.

However, when it is triggered from code via the /dbconnections/change_password endpoint, the user is not redirected after the password is changed.

The latter endpoint only takes 3 parameters (client_id, email, connection) so it doesn’t look like there’s anything else that can be passed in to provide the redirect to url. The reset email seems to be the same as the standard change password email so I’m unsure what’s going on here.