# Missing og:url in Vue

> How to fix missing og:url in Vue — with the exact fix and copy-paste code.

_Category: Search visibility · Detector `seo` · Check `og-url-missing` · Severity: info_

`og:url` tells social platforms which canonical address a share belongs to, so likes and shares of the same page via different tracking links consolidate onto one URL. Without it, a page shared with `?utm_source=…` can be treated as a separate object, splitting its social signals.

## The fix for Vue

Add the `og:url` entry to `useHead`, building the absolute URL from the current route.

```ts
useHead({ meta: [{ property: 'og:url', content: 'https://acme.com/pricing' }] })
```

### Steps

1. Determine the clean canonical URL for the page
2. Emit it as `<meta property="og:url">`
3. Keep it in sync with your canonical link

## How VibeCheck detects it

The `seo` detector flags this live in the browser and reports it to the widget's Problems list — and to your coding agent over MCP.

- **Issue string:** `Missing og:url`
- **Threshold:** no <meta property="og:url">

## FAQ

### Should `og:url` match my canonical link?

Yes. Keep `og:url` identical to `<link rel="canonical">` so social and search agree on the one true URL for the page.

### Should `og:url` include tracking parameters?

No. Strip `utm_*` and other params so shares consolidate onto the clean URL.

### What happens if `og:url` points at the wrong page?

Platforms credit the share — and its engagement — to whatever `og:url` says, and echo that URL in the card. A stale or wrong value sends clicks to the wrong page, so build it from the current route, not a hardcoded string.

### Do I need `og:url` if I already set a canonical link?

They serve different consumers: `<link rel="canonical">` is for search engines, `og:url` is for social platforms. Set both, and keep them identical.

See the general, framework-agnostic fix: https://vibecheck.wcgw.fun/fix/missing-og-url.md

---

Fix guide from VibeCheck — https://vibecheck.wcgw.fun/fix/missing-og-url. Full site index for LLMs: https://vibecheck.wcgw.fun/llms.txt
