Redirect to a page after Registration

Ultimate Member provides an option that the user can be redirected to a specific page like their profile, use a custom URL, or a custom message after registration.

Go to  wp-admin> Ultimate Member > User Roles > edit the default role > Registration Options

If there is an issue encountered after registration and it redirected the user again to the registration form, try using this code: