Opening the page…

Sulayman Bowles
Back to writing

Technical SEO

When the share URL names a different page

The address a visitor opens, the document search should represent and the object a share identifies serve different jobs.

Monochrome generative point study “Twin Drift,” a mathematical form rendered in black and white.

“OG URL not matching canonical” means a page declares one preferred document URL in rel=canonical and a different social-object identity in og:url. For an ordinary article or product, generate both from the same clean, absolute URL for that document. First check that the canonical itself points to the right page; copying a wrong value into both tags only makes the mistake consistent.

An intentional collection-level share identity needs a different decision. Inspect what each address represents before making a site-wide replacement. The Open Graph protocol defines og:url as the object’s permanent identity, while the HTML Standard defines canonical as the preferred URL for the current document.

Method & limits

Protocol and Google guidance checked October 26, 2026. The mug-guide URL family is an illustrative fixture, not a production audit.

Compare the roles before comparing strings

A newsletter can link to a tracked address without creating a new article. The incoming request records how the visitor arrived; the head identifies the article. Keep those purposes separate in the page template.

Google describes redirects, canonical annotations and sitemap inclusion as canonicalization methods. A social metadata warning does not tell you which URL Google has selected. Use the indexed URL Inspection result for that separate question. Canonical methods; URL Inspection.

Address or declarationJobMug-guide fixture
Incoming linkCarries the destination and campaign attribution/guides/ceramic-mugs?utm_source=newsletter
Final response URLShows where this request actually landedMay retain the campaign parameter
rel=canonicalDeclares the preferred document representationhttps://example.com/guides/ceramic-mugs
og:urlDeclares the social object’s identityThe same clean guide URL
RedirectMoves a request to another addressUse for an obsolete host or replaced route when appropriate

Illustrative fixture. A parameter that changes the document, product or language requires its own content decision.

One guide, two conflicting identities

In this authored fixture, a visitor opens https://example.com/guides/ceramic-mugs?utm_source=newsletter. The production server returns the complete guide with a 200 response. The search template knows the clean production address, but the share template still reads a preview-host setting.

That disagreement comes from two metadata owners. Changing the campaign link would leave the stale host in every new share capture. Correct the share template’s production origin and route source, then confirm the destination is the same guide.

Illustrative metadata · same guide

One arrival. Two declared identities.

01

Visitor arrives

/guides/ceramic-mugs?utm_source=newsletter

The campaign records attribution.

02

Search preference

example.com/guides/ceramic-mugs

The clean production guide is the intended representative.

03

Social object before repair

preview.example.com/guides/ceramic-mugs?utm_source=newsletter

A stale share template names the preview host.

Corrected single-article identitycanonical = og:urlhttps://example.com/guides/ceramic-mugsThe tracked arrival may stay; both templates identify the same public guide.
This single-guide repair does not override an intentional collection-level social identity. The archive example below makes that exception explicit.
Before: the initial HTML names a preview object

Illustrative head excerpt from the production response. The preview address is the defect.

<link rel="canonical"
      href="https://example.com/guides/ceramic-mugs">
<meta property="og:url"
      content="https://preview.example.com/guides/ceramic-mugs?utm_source=newsletter">
After: the same document has one declared identity

Illustrative corrected metadata. The incoming newsletter URL may still retain its tracking parameter.

<link rel="canonical"
      href="https://example.com/guides/ceramic-mugs">
<meta property="og:url"
      content="https://example.com/guides/ceramic-mugs">
<meta property="og:type" content="article">
<meta property="og:title" content="Choosing a ceramic mug">
<meta property="og:image"
      content="https://example.com/images/ceramic-mugs.jpg">

Repair the cause that produced the difference

Use the actual final response to select the case. Do not lowercase paths, delete every query parameter or force every page to the homepage merely to satisfy a comparison. A URL scheme and host policy can be shared across the site; page identity still belongs to the document.

The canonical relation is intended for duplicate content or a representative containing that content. Two different products with different prices and capacities do not become duplicates because they share a template. RFC 6596 describes that relationship.

Observed differenceContent decisionTemplate repair
og:url includes utm_source; canonical is cleanSame guide, tracked arrivalUse the clean document URL for og:url; keep attribution on the incoming link
og:url uses a preview hostSame guide, wrong publishing originRead the configured production origin for public metadata
One value uses an old path or hostThe guide moved permanentlyAlign metadata with the maintained destination and review the old route’s redirect
Both tags name another productDistinct products have been consolidated incorrectlyRestore each useful product’s identity and content
Page 2 canonical; series URL in og:urlA potentially intentional collection shareReview the intended social object before changing either value

Matching strings are the result of a correct identity decision, not a substitute for it.

Keep attribution without publishing a new object for every campaign

In the mug-guide fixture, ?utm_source=newsletter changes attribution only. The guide’s title, body and product recommendations stay the same. The request can retain that parameter while canonical and og:url use the clean guide address. Neither metadata declaration edits the browser’s address bar.

Generate the two metadata values from the maintained document record, using the public origin and route. A request-derived host can leak a preview hostname into production metadata; a raw request URL can put every campaign token into the object identity. Fix that source once rather than adding a second tag later with JavaScript.

If a query changes language, product configuration or a useful filtered collection, assess that representation first. Removing a parameter is a publishing decision when the parameter changes what readers receive. The canonical identity study follows the same principle across a person’s documents and profiles.

The personal canonical identity study carries this document-level decision into a person’s own site and public profile records.

A paginated archive can share the series while indexing each page

Consider /journal/page/2/. Its search canonical can remain /journal/page/2/ because it lists different articles from /journal/. A publisher might deliberately use /journal/ as the social object when the share action promotes the journal as a collection. Yoast’s official support describes that difference as intentional behavior for paginated archives. Yoast support

Keep the share title, description and destination consistent with that collection-level choice. If the intended share is specifically “Journal, page 2,” use its page-specific identity instead. A collection-level choice should not silently replace the identity of each individual article.

Do not change page 2’s search canonical to page 1 just to match the series share URL. Google’s current pagination guidance recommends a unique URL and its own canonical for each page. The canonical pagination example shows the item-discovery consequences. Google pagination guidance

Check the served head, then check the share

Start with the hub’s capture checklist: requested address, redirect hops, final response, HTTP headers, initial HTML and rendered head. Compare the exact canonical and og:url values beside the content each URL serves.

For the repaired fixture, the production response should contain one canonical link and one og:url naming the clean guide. Inspect the HTTP Link header too: a correct HTML pair can coexist with a contradictory server declaration. Use the multiple canonical tags diagnosis when those layers disagree.

Repeat the capture on the clean guide and its newsletter variant. Confirm that public visitors can open the declared URL and image. Then inspect the URL with the relevant platform’s sharing tool, such as LinkedIn Post Inspector. Correct the live raw response before requesting a fresh platform capture; a changed browser DOM alone does not establish what that platform received.

Treat the two observations separately: the current response can be repaired while an earlier preview is still visible. Record the preview actually shown after the platform refreshes it. Changing the tags does not itself demonstrate a refreshed card, transferred engagement or a new Google-selected canonical.

Sources

  1. Open Graph protocol — basic metadata and og:url

    Open Graph protocol

    Verified Oct 26, 2026

  2. HTML Standard — canonical link type

    WHATWG

    Verified Oct 26, 2026

  3. RFC 6596 — The Canonical Link Relation

    IETF / RFC Editor

    Verified Oct 26, 2026

  4. Google — canonical URL methods

    Google Search Central

    Verified Oct 26, 2026

  5. Yoast support — Open Graph URL not matching canonical on pagination

    WordPress.org / Yoast support

    Verified Oct 26, 2026

  6. Google — pagination and incremental page loading

    Google Search Central

    Verified Oct 26, 2026

  7. LinkedIn — Post Inspector

    LinkedIn

    Verified Oct 26, 2026

  8. Google — URL Inspection and Google-selected canonical

    Google Search Console Help

    Verified Oct 26, 2026

Read next