When performing self registration for a user in a sub-realm (and where sub-realm has a dns alias), url sent in email link directs user to top-level realm url with a realm parameter, rather than using the realm's dns alias.
This means that the fully qualified domain name the user sees in the address bar of their browser is inconsistent with the url they started at. It may also cause routing issues dependent on network infrastructure of some customer deployments.
Steps to reproduce:
- Deploy AM. Create a subrealm including a dns alias, e.g. subscribers.amtest1.com.
- For the sub-realm, add the services Email service and User self service, enabling User registration.
- As a user, navigate to the sub-realms login page, i.e. https://subscribers.amtest1.com. Click to create an account and then complete the user registration form.
- Once the registration email is sent successfully, review the link included in the email. This points to the top level realm url (openam server or site installation url) with realm=subscribers as a url param.