if I change rankmath data like the canonical URL in one language the other Language get’s synchronized.. Also the default homepage canonical is not https://domain.com/en/ but https://domain.com missing trailing slash and the language part.
page A: canonical should be domain.com/de/
page B: canonical should be domain.com/en/
page A: canonical is domain.com
page B: canonical is domain.com
page A and page B is the same.. so I type domain.com/de/ in canonical field for page A and page B takes the same value because in your wpml-config.xml on line 10 there is action="copy" for rank_math_canonical_url. This should be replaced with action="translate" because the canonical URL must not be the same for two different languages.
So what I want:
1. make the canonical URL translateable (like mentioned above)
2. Use a trailing slash for the canonical URL on the homepage URL independent of multilingualism
3. Use the language parameters for the canonical URL on the homepage URL
You can change the config.xml values from WPML settings. To do that, please install WPML’s Translation Management plugin and navigate to WPML >> Settings >> Custom Fields Translation and set rank_math_canonical_url to translate.
@pratik-d I don’t have WPML installed.. The post is about polylang, which does not offer those settings. For this time I changed the value directly in RankMath which is not really secure for updates.
This should be fixed for all installations because the canonical URL can vary for different languages. Also what about the problem with the missing trailing slash (and lang parameters) on homepage canonicals?