Skip to content
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 9 additions & 1 deletion website/docs/api/docusaurus.config.js.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -289,10 +289,18 @@ export default {

- Type: `'ignore' | 'log' | 'warn' | 'throw'`

The behavior of Docusaurus when it detects any broken link.
The behavior of Docusaurus when it detects any broken link `to` found in the Docusaurus `<Link>` element.

By default, it throws an error, to ensure you never ship any broken link.

Broken link detection only applies to relative internal links that the Docusaurus framework knows about.

To opt out of a broken link, add the attribute `data-noBrokenLinkCheck` to the `Link` element that contains the broken link:

```jsx
<Link to="/broken-link" data-noBrokenLinkCheck>Link</Link>
```

:::note

The broken links detection is only available for a production build (`docusaurus build`).
Expand Down