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.

“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 declaration | Job | Mug-guide fixture |
|---|---|---|
| Incoming link | Carries the destination and campaign attribution | /guides/ceramic-mugs?utm_source=newsletter |
| Final response URL | Shows where this request actually landed | May retain the campaign parameter |
| rel=canonical | Declares the preferred document representation | https://example.com/guides/ceramic-mugs |
| og:url | Declares the social object’s identity | The same clean guide URL |
| Redirect | Moves a request to another address | Use 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.
One arrival. Two declared identities.
Visitor arrives
/guides/ceramic-mugs?utm_source=newsletterThe campaign records attribution.
Search preference
example.com/guides/ceramic-mugsThe clean production guide is the intended representative.
Social object before repair
preview.example.com/guides/ceramic-mugs?utm_source=newsletterA stale share template names the preview host.
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">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 difference | Content decision | Template repair |
|---|---|---|
| og:url includes utm_source; canonical is clean | Same guide, tracked arrival | Use the clean document URL for og:url; keep attribution on the incoming link |
| og:url uses a preview host | Same guide, wrong publishing origin | Read the configured production origin for public metadata |
| One value uses an old path or host | The guide moved permanently | Align metadata with the maintained destination and review the old route’s redirect |
| Both tags name another product | Distinct products have been consolidated incorrectly | Restore each useful product’s identity and content |
| Page 2 canonical; series URL in og:url | A potentially intentional collection share | Review 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
- Open Graph protocol — basic metadata and og:url
Open Graph protocol
Verified Oct 26, 2026
- HTML Standard — canonical link type
WHATWG
Verified Oct 26, 2026
- RFC 6596 — The Canonical Link Relation
IETF / RFC Editor
Verified Oct 26, 2026
- Google — canonical URL methods
Google Search Central
Verified Oct 26, 2026
- Yoast support — Open Graph URL not matching canonical on pagination
WordPress.org / Yoast support
Verified Oct 26, 2026
- Google — pagination and incremental page loading
Google Search Central
Verified Oct 26, 2026
- LinkedIn — Post Inspector
LinkedIn
Verified Oct 26, 2026
- Google — URL Inspection and Google-selected canonical
Google Search Console Help
Verified Oct 26, 2026