In additon to elisolution's answer earlier mentioned, this also checks no matter whether we are actually on the home web site (not simply if the canonical was established or not). I analyzed this solution a tiny bit and in terms of I am able to see, it really works as predicted. https://socialwoot.com/story20841817/getting-my-%D0%90%D0%B2%D1%82%D0%BE%D0%BC%D0%B0%D1%82%D0%B8%D1%87%D0%B5%D1%81%D0%BA%D0%B8%D0%B5-%D1%82%D0%B5%D0%B3%D0%B8-hreflang-%D0%B8-%D0%BA%D0%B0%D0%BD%D0%BE%D0%BD%D0%B8%D1%87%D0%B5%D1%81%D0%BA%D0%B8%D0%B5-%D1%82%D0%B5%D0%B3%D0%B8-seo-to-work