---
title: "og:url · Meta Tag · zhead"
canonical_url: "https://zhead.dev/meta/og-url"
last_updated: "2026-08-19T02:35:56.639Z"
meta:
  description: "Provides the canonical URL used as the object’s permanent identifier. It is one of the four required basic properties."
  "og:description": "Provides the canonical URL used as the object’s permanent identifier. It is one of the four required basic properties."
  "og:title": "og:url · Meta Tag · zhead"
---

Open Graph metadata

# og:url

Provides the canonical URL used as the object’s permanent identifier. It is one of the four required basic properties.

## Code examples

Good example

```
<meta property="og:url" content="https://example.com/page.html">
```

An absolute, canonical page URL.

Avoid this example

```
<meta property="og:url" content="/page.html">
```

A relative path is not a canonical absolute URL.

Avoid this example

```
<meta property="og:url" content="https://example.com/different-page.html">
```

Wrong when this URL identifies a different page rather than the current object.

## Recommendations

- 01 Always Use Absolute URLs Include the scheme and host so every consumer identifies the same URL.
- 02 Match the Canonical URL If the page declares a canonical link, use the same URL here.

## Related documentation

- [Open Graph protocol](https://ogp.me/)

## Related meta tags

### [og:audio](https://zhead.dev/meta/og-audio)

property

Provides the URL of an audio file that accompanies the Open Graph object.

```
<meta property="og:audio" content="https://example.com/birdsong.mp3">
```

An absolute, public URL to the audio file.

### [og:audio:secure\_url](https://zhead.dev/meta/og-audio-secure-url)

property

Provides an alternate HTTPS URL for the audio declared by the preceding og:audio property.

```
<meta property="og:audio:secure_url" content="https://example.com/music/song.mp3">
```

A valid HTTPS alternate for the audio resource.

### [og:audio:type](https://zhead.dev/meta/og-audio-type)

property

Provides the MIME type of the audio resource declared by the preceding og:audio property.

```
<meta property="og:audio:type" content="audio/mpeg">
```

The registered media type for MP3 audio.

### [og:audio:url](https://zhead.dev/meta/og-audio-url)

property

An alias of og:audio. It provides the URL of an audio file that accompanies the object.

```
<meta property="og:audio:url" content="https://example.com/audio.mp3">
```

An absolute URL to the audio file.

### [og:description](https://zhead.dev/meta/og-description)

property

Provides a one or two sentence description of the Open Graph object.

```
<meta property="og:description" content="A practical guide to choosing and caring for indoor plants in low-light rooms.">
```

Explains the subject in one specific sentence.