Open Graph URL

The page has a canonical URL for social media sharing.

On this page

Impact

ScanGov impact ratings

About

The Open Graph URL tag provides the canonical URL for the content, which is essential for social media platforms to know which page to link to when shared. If the URL is missing or incorrect, social media platforms may not correctly associate the content with the intended page, potentially causing issues like broken links or the sharing of the wrong page, which could affect user engagement and SEO performance.

Risks

Shared links may point to wrong page.

Why it's important

Defines the URL of the shared content, ensuring correct linking and improving how the page is displayed on social media.

User stories

As a site visitor, I want the shared content to link to the correct webpage, so that I can be sure I am clicking the right link and accessing the intended content.

Code

Add inside <head>:

<meta property="og:url" content="https://example.gov/page/">

Error

ScanGov messaging when a site fails a standard:

Canonical link missing.

Guidance

Indicators

On this page