Skip to content
Documentation
Rule catalogue

og.image.reachable

The URL in og:image has to answer with an image

errorper pagevendor-spec

Why it matters

Every other check on a preview image judges the tag; this one judges the file. It is the only one that catches the failure with no symptom — a URL present, well-formed, absolute, and dead. Found on this project's own documentation, where the cards pointed at a route a redirect had been swallowing since the day it was written.

What the finding looks like

The message goflag prints, with example values substituted.

error og.image.reachable og:image does not serve an image: HTTP 200 with text/html, which is not an image. The preview card will render without it.

How to fix it

This rule ships no snippet, because the remedy is a judgement rather than a line of code: the finding tells you what is out of range, and what to put there is yours to decide.

Says who?

This rule is vendor-spec, and it cites the documents below. Nothing here is goflag’s opinion of what a good page looks like — if you disagree with a finding, this is what you are disagreeing with.