Post Change Password Flow - URL redirect

Hello!

I’m trying to make a simple redirect to send the user somewhere other than the New Universal Login’s default of the login URL while still keeping the New Universal Login. I was hoping to do this with a Post Change Password action.

Right now it’s this, with a real URL instead of an example one, and it’s not working (there is no redirect):

/**
* Handler that will be called during the execution of a PostChangePassword flow.
*
* @param {Event} event - Details about the user and the context in which the change password is happening.
*/
exports.onExecutePostChangePassword = async (event) => {
  event.redirect.sendUserTo("https://mywebsite.example.com");
};

Any ideas? Thanks!

When would you like to redirect the user? After what user’s action?