When you have several language or country versions you mark up with hreflang, then Every of those variations ought to have a canonical tag pointing to alone. The JS redirect seems like a little bit of a messy circumstance, but to answer your question: When you set a canonical tag https://thebookpage.com/story4178665/everything-about-hreflang-canonical