In additon to elisolution's response above, this also checks no matter if we are actually on the home site (not simply whether or not the canonical was established or not). I analyzed this solution a tiny bit and in terms of I'm able to see, it really works as anticipated. Otherwise, https://pageoftoday.com/story4651668/the-ultimate-guide-to-automatic-hreflang-tags-canonical-tags-all-pages-seo