Skip to content

onBrokenLinks incorrectly handles "antennapod-subscribe" scheme #11520

@wparad

Description

@wparad

Have you read the Contributing Guidelines on issues?

Prerequisites

  • I'm using the latest version of Docusaurus.
  • I have tried the npm run clear or yarn clear command.
  • I have tried rm -rf node_modules yarn.lock package-lock.json and re-installing packages.
  • I have tried creating a repro with https://new.docusaurus.io.
  • I have read the console error message carefully (if applicable).

Description

links with antennapod-subscribe, and I'm sure any scheme that contain a url path that matches the docusaurus host path are incorrectly assumed to be the site itself.

For instance, I don't control a scheme, that's registered somewhere else. And I have a page in the website that I'm dynamically generating, for instance the rss.xml feed url.

onBrokenLinks doesn't take in generated pages into consideration, even if that file is listed in pages/.

Reproducible demo

No response

Steps to reproduce

Create a element with a to=antennapod-subscribe://site-url/rss.xml ensure that site-url is the docusaurus site, and that rss.xml exists in the pages directory

Run the build, and see it fail.

Expected behavior

It should correctly include pages in broken link validation

Actual behavior

It ignores the file and assumes there is a broken link.

Your environment

Self-service

  • I'd be willing to fix this bug myself.

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugAn error in the Docusaurus core causing instability or issues with its executionstatus: needs triageThis issue has not been triaged by maintainers

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions