Redirection to the Top Level Domain

Overview

There is a custom domain in place, and when accessing https://auth.test.net, it redirects to https://test.net. This article explains why this happens.

Applies To

  • Custom Domain
  • Redirects

Cause

There is no Auth0 endpoint for the root path ‘/’, so this behavior is expected when navigating directly to the Custom Domain’s root path.

Solution

The Custom Domain should not be visited directly, similar to how the canonical Auth0 domain should not be visited directly, as it will just redirect to the Auth0 site since it is the top-level domain.

That is why when calling https://app.test.net/login, the desired result is received since we have the /login parameter.