> For the complete documentation index, see [llms.txt](https://gitbook-open-v2-preview.gitbook.workers.dev/url/gitbook.com/docs/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://gitbook-open-v2-preview.gitbook.workers.dev/url/gitbook.com/docs/documentation/zh/creating-content/broken-links.md).

# 损坏的链接

{% hint style="info" %}
此功能当前不可用。要管理损坏或已更改的 URL，请改用 [站点重定向](/url/gitbook.com/docs/documentation/zh/docs-site/site-redirects.md) 代替。
{% endhint %}

<div data-full-width="false"><figure><img src="/files/5df071504ad886a26028fdb07209e40f19e68840" alt="A GitBook screenshot showing the Broken links panel"><figcaption><p>该 <strong>失效链接</strong> 面板，可在空间右侧打开，用于检查内部失效链接。</p></figcaption></figure></div>

你可以向页面中添加不同 [类型的链接](/url/gitbook.com/docs/documentation/zh/creating-content/formatting/inline.md#links) 到 GitBook 中。如果有人在 [相对链接](/url/gitbook.com/docs/documentation/zh/creating-content/formatting/inline.md#relative-links) 上通过更新链接或更改其位置使其失效，你会看到一条通知，提示有内容需要修复。

{% hint style="info" %}
当前，链接失效检测仅适用于指向你所在组织中其他 GitBook 内容的相对链接。它不会检测指向外部 URL 的失效链接。
{% endhint %}

要查看失效链接，请点击 [空间标题](/url/gitbook.com/docs/documentation/zh/zi-yuan/gitbook-ui.md#space-header) 中的失效链接符号。

### 修复失效链接

如果 GitBook 找到失效链接，你会在此部分看到一条通知，其中包含指向包含该失效链接页面的链接。然后，只需用有效链接替换或更新该链接即可。

在查看失效链接时，你还可以在侧边栏中设置失效链接的范围和筛选条件：

#### 范围：当前更改请求

这将查找你当前正在处理的更改请求范围内新失效的链接。

#### 范围：当前空间

这将查找你当前所在空间范围内的失效链接。

#### 筛选条件：失效链接

显示你所在空间或更改请求中的任何失效或缺失链接。

#### 筛选条件：内部链接

此筛选条件有助于确保你已发布的文档不会链接到 GitBook 组织内的内部内容。它将显示指向内部未发布内容的任何链接，而已发布内容的读者将无法访问这些内容（即，以 `app.gitbook.com/o/<organizationID>/…`开头的链接）。你可以通过将这些链接替换为已发布的 GitBook 页面 URL 来修复它们。


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## Querying This Documentation
If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://gitbook-open-v2-preview.gitbook.workers.dev/url/gitbook.com/docs/documentation/zh/creating-content/broken-links.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
