Background of the issue:
I am trying to use AffiliateWP’s Affiliate Portal with WPML in multiple languages. The portal uses internal sub-routes like /affiliate-area/network and /affiliate-area/stats, which are React views rendered inside a single translated page. The issue can be seen at hidden link.
Symptoms:
I expected to see the Affiliate dashboard view corresponding to /network inside the Affiliate Portal, but instead, I am redirected to an unrelated documentation page with a similar slug. This issue seems to occur because WPML matches the slug 'network' with another page in the same language. It sometimes happens in English and with other routes like /stats or /creatives, but not consistently.
Questions:
Why does WPML match the slug 'network' with an unrelated page?
How can I ensure the correct routing for internal sub-routes in the Affiliate Portal?