For those who have various language or place versions that you just mark up with hreflang, then Just about every of these versions ought to have a canonical tag pointing to by itself. The JS redirect appears like a little bit of a messy circumstance, but to answer your problem: https://dirstop.com/story21779005/top-guidelines-of-hreflang-canonical