For AI agents: a documentation index is available at /llms.txt. Markdown versions of these pages are available by appending `.md` to the URL or by sending `Accept: text/markdown`.

规则 / og-url-relative · 规则集 2026-07

og:url 使用相对路径

错误og-url-relative

名称

og:url 使用相对路径 og-url-relative

og:url 必须是绝对地址,才能让不同请求入口指向同一分享身份。

如何修复

将 og:url 设置为页面完整的 HTTPS 规范 URL。

修复示例:

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

复制或下载

可复制的 Markdown,方便发给同事或贴进 agent 对话。

# og-url-relative — og:url 使用相对路径

- **名称:** og:url 使用相对路径

## 说明

og:url 必须是绝对地址,才能让不同请求入口指向同一分享身份。

## 如何修复

将 og:url 设置为页面完整的 HTTPS 规范 URL。

### 修复示例:

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

## 规则文档

https://ogkit.akr.moe/zh/rules/og-url-relative

下载这条规则的 Agent Skill 包。

下载 og-url-relative.skill

文件是 skill-name/SKILL.md 的 ZIP(Agent Skills 规范)。.skill 就是这份 ZIP;如果客户端只要 .zip,改个扩展名即可。

规则 IDog-url-relative
严重程度错误
分类平台与抓取
平台全部平台
需要人工处理否

这是什么

og:url 使用相对路径。OGKit 规则 og-url-relative(错误)。该 ID 是文档网址与 CI --disable 键使用的公开 API,请勿改名。

以下搜索词应指向本页:

  • All URLs must be absolute
  • I want my og:url or og:image tags to use relative URLs, but the debugger complains about this.
  • og:url is a relative path
  • relative og:url

为什么重要

og:url 必须是绝对地址,才能让不同请求入口指向同一分享身份。

受影响的平台

全部 OGKit 平台资料,包括使用这些标签的主要社交、聊天与搜索爬虫。

各平台的爬虫预算与字段优先级详见平台行为参考。

如何复现

  1. Read og:url. Relative paths like `/page` fail this check.
OGKit