This thread is resolved. Here is a description of the problem and solution.
Problem: After configuring the subdomain and WPML, the secondary language redirects to the primary language.
Solution: This depends on how you configured the subdomain. The domain or subdomain must be an alias of the primary domain.
At the link below you can see our step-by-step documentation on how to set up your domain.
Relevant Documentation: https://wpml.org/2016/04/use-wpml-different-domains-per-language/
This is the technical support forum for WPML - the multilingual WordPress plugin.
Everyone can read, but only WPML clients can post here. WPML team is replying on the forum 6 days per week, 22 hours per day.
Our next available supporter will start replying to tickets in about 3.71 hours from now. Thank you for your understanding.