In additon to elisolution's solution earlier mentioned, this also checks irrespective of whether we are literally on the home web page (not just if the canonical was set or not). I examined this Answer a bit and as far as I'm able to see, it really works as envisioned. Normally, please https://baidubookmark.com/story19067069/a-simple-key-for-hreflang-to-non-canonical-unveiled