In additon to elisolution's solution higher than, this also checks whether or not we are actually on the house page (not merely whether or not the canonical was set or not). I analyzed this Answer a little bit and as far as I'm able to see, it works as envisioned. Otherwise, https://nybookmark.com/story20844206/5-simple-techniques-for-was-ist-canonical-tag