Skip to content

social/asset-divergence: entity og:image shared by hreflang alternates reported as fallback #937

Closed

Description

@deniskern

Summary

social/asset-divergence reports an entity page's own og:image as a divergent "fallback" OG image when the same image is shared by that page's locale variants (one collection, 16 market/language URLs).

Observed (squirrel 0.0.117, https://www.alpensattel.de, 1499 pages)

Check message: 96 of 1499 page(s) diverge from the site's own favicon and default OG image (favicon 100%, default OG image 90%)

Item (dimension og-image):

16 of 999 page(s) fall back to OG image "https://www.alpensattel.de/cdn/shop/collections/fahrradhandschuhe-fuer-jede-jahreszeit-komfort-schutz-bei-jeder-fahrt-4992241.webp?v=1777271900&width=1200" but the site norm is "https://www.alpensattel.de/cdn/shop/files/alpensattel-social-sharing-1200x630-blau.png?v=1790790913&width=1200"

Source pages: /collections/fahrradhandschuhe, /da-dk/collections/cykelhandsker, /da/collections/cykelhandsker, /de-ch/collections/fahrradhandschuhe, /fi-fi/collections/pyorailyhanskat, … (all hreflang alternates of one collection). Same for /collections/geschenke.

Expected

An og:image that is the page's own entity image (collection, product, article) is intentional and no divergence, even when its hreflang alternates repeat it. Only favicon / theme-color divergence, or a fallback image that differs from the site norm on pages without an entity image, should be reported.

Notes

v0.0.104 stopped reporting a page's own og:image; grouping locale variants apparently makes the shared entity image look like a layout fallback again. Suggested: treat pages that are hreflang alternates of each other as one page when deciding whether an og:image is a shared fallback.

Acceptance Criteria

  • On a crawl shaped like alpensattel.de (one collection page plus its 15 hreflang alternates, all sharing one entity og:image), social/asset-divergence does not report that image as a divergent fallback
  • Pages that are hreflang alternates of each other count as one voter on the og-image axis, so a shared entity image is not mistaken for a layout fallback by repetition
  • A fallback og:image shared by a real pocket of unrelated pages (not hreflang alternates) that differs from the site norm is still reported
  • Favicon and theme-color divergence is still reported unchanged
  • Collection pages that ship their own og:image are not flagged, matching how article and product pages are already exempt (check whether collection belongs in the exempt page types)
  • Unit tests cover the hreflang-cluster case and the real-fallback-pocket case, and the CLI and cloud (siteQuery streaming) paths give the same verdict
  • docs/rules/social/asset-divergence.mdx states how hreflang alternates are treated, and the CHANGELOG has an entry

Activity

  1. added
    bug
    P1
    rules
    size: S
    P2
    and removed
    P1
    on Oct 20, 2026
  2. nc9 commented on Oct 20, 2026

    @nc9
    Contributor

    Hey Denis, thanks for this one too, and sorry it has sat for a bit. The cause looks like what you suspected: grouping locale variants makes a shared entity image look like a layout fallback again. We'll count hreflang alternates as one voter on the og-image axis, and check whether collection pages belong with the other page types that are exempt when they ship their own og:image. It's queued, and we'll comment here when the fix is on main.

  3. nc9 commented on Oct 20, 2026

    @nc9
    Contributor

    Fixed on main and shipping in the next release. Pages that list each other as hreflang alternates now count as one voter on the og-image axis, so a collection and its locale variants sharing an entity image are no longer reported as a fallback. Unrelated pages that share a fallback image are still reported, and favicon and theme-color are unchanged. Thanks again for the report and the exact numbers.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    P2bugrulessize: S

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions