Skip to content

Rule · SEO

og:description / og:site_name missing, or og:url ≠ canonical

seo/og-incompletewarnvoid seoupdated

Why it matters

A page-level openGraph object in Next.js replaces the layout's entirely (verified on 16.3.5), silently dropping siteName and locale; og:url that differs from the canonical attributes shares to another URL.

How to fix it

Build openGraph with one helper that always re-adds siteName and locale, and sets url to the canonical path.

Example

ts
openGraph: { type: 'article', url: path, title, description, siteName: site.name, locale: site.locale }

References

void seo reports 60 rules in this category. What search engines need from the raw response: status codes, titles and descriptions in <head>, self-referencing canonicals, one h1, crawlable links, Open Graph, icons, robots.txt and a sitemap with real dates.