Skip to content

Update documentation on broken link detection #11520#11521

Closed
wparad wants to merge 2 commits into
facebook:mainfrom
wparad:patch-1
Closed

Update documentation on broken link detection #11520#11521
wparad wants to merge 2 commits into
facebook:mainfrom
wparad:patch-1

Conversation

@wparad
Copy link
Copy Markdown

@wparad wparad commented Oct 30, 2025

Clarify broken link detection behavior and opt-out method.

Clarify broken link detection behavior and opt-out method.
@meta-cla meta-cla Bot added the CLA Signed Signed Facebook CLA label Oct 30, 2025
@netlify
Copy link
Copy Markdown

netlify Bot commented Oct 30, 2025

[V2]

Built without sensitive environment variables

Name Link
🔨 Latest commit 13ac115
🔍 Latest deploy log https://app.netlify.com/projects/docusaurus-2/deploys/69034b748793890008ac4eb1
😎 Deploy Preview https://deploy-preview-11521--docusaurus-2.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify project configuration.


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

Broken link detection only applies to relative links within a plugin, it does not work across plugins nor on pages specified in `/pages` or `static`.
Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

That's not really accurate. It's unclear to me what it means to "not work across plugins", and it definitively works if you link to /my-page after creating a pages/my-page.md file


Broken link detection only applies to relative links within a plugin, it does not work across plugins nor on pages specified in `/pages` or `static`.

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

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

this is not an HTML attribute (although it's technically legal to pass any data attribute to HTML elements), it is a proprietary React component prop of the Docusaurus <Link> component

As explained here, we don't document it on purpose, and only share this secret API after having clearly understood why a user need it

#11520 (comment)

@slorber
Copy link
Copy Markdown
Collaborator

slorber commented Nov 27, 2025

I'd rather not merge this in docs for now, since it's supposed to work out of the box and I want to know when it doesn't.

Being aware of problems help us fix the bugs we have.
Your issue should be automatically resolved in the upcoming release thanks to #11579

@slorber slorber closed this Nov 27, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

CLA Signed Signed Facebook CLA

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants