-
-
Notifications
You must be signed in to change notification settings - Fork 9.6k
Description
Have you read the Contributing Guidelines on issues?
- I have read the Contributing Guidelines on issues.
Prerequisites
- I'm using the latest version of Docusaurus.
- I have tried the
npm run clearoryarn clearcommand. - I have tried
rm -rf node_modules yarn.lock package-lock.jsonand 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
- Public source code: https://github.com/AdventuresInDevops/Website
- Public site URL: https://adventuresindevops.com
- Uncomment this line: https://github.com/AdventuresInDevops/Website/blob/main/src/components/socialButtons/index.js#L60
Self-service
- I'd be willing to fix this bug myself.