Custom Domain not Redirect Properly

Problem Statement

An application redirects to a white page with the custom domain. It should redirect to the login page.

Cause

For the application, the custom_login_page_on property is enabled, and the custom domain is passed into the custom_login_page property.

If you don’t need a custom login page for this application, custom_login_page_on should be set to false and custom_login_page to be an empty string.

On the other hand, if you want to use a custom login page, please leave the custom_login_page_property as true and update the custom_login_page property through the Management API with the HTML required for it to render.

Solution

Depending on your use case, please send a PATCH request to the /api/v2/clients/{id} endpoint of the management API to make the change.