Links to directories from Markdown local files are reported as 404 even when they exist
See original GitHub issuepi@pi:~/lnb $ node --version
v14.15.3
pi@pi:~/lnb $ npm ls --depth 0
/home/pi/lnb
└── linkinator@2.8.2
pi@pi:~/lnb $ cat issue.md
[Link to file](test/file.md)
[Link to directory, works fine in GitHub README](test)
[Alternate link to directory, just curious](test/)
pi@pi:~/lnb $ ./node_modules/.bin/linkinator issue.md --markdown
🏊♂️ crawling issue.md
[200] http://localhost:5920/issue.md
[200] http://localhost:5920/test/file.md
[404] http://localhost:5920/test/
[404] http://localhost:5920/test
[200] http://localhost:5920/issue.md
http://localhost:5920/issue.md
[200] http://localhost:5920/test/file.md
[404] http://localhost:5920/test/
[404] http://localhost:5920/test
ERROR: Detected 2 broken links. Scanned 4 links in 0.269 seconds.
pi@pi:~/lnb $
Issue Analytics
- State:
- Created 3 years ago
- Comments:5 (2 by maintainers)
Top Results From Across the Web
Linking to file in GitHub Readme makes gives a 404?
In my main md I have [My release](./releases/my-release.md) but when I visit the page, it gives a 404. The my-release.md file exists within...
Read more >Broken links (404) to Markdown or text documents / Frequently ...
If it does not, this means that the URL was generated incorrectly for documentation hosting by the library. See below for how to...
Read more >Getting a 404 error on my page · Discussion #23525 - GitHub
If none of these files exist, your website will show a 404 Not Found error, even if there are other HTML files in...
Read more >Relative Links in Markdown throwing 404s. - Issues - GitLab
Hello, I am experiencing an issue using GitLab Community Edition 8.9.6. It appears similar to bugs documented in.
Read more >Markdown local links don't work - issue #6315 extension
When using links to header anchors in markdown local file links do not work. ... link2 bounces around commits or branches, either way...
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
This is workaround-able, so not blocking. However, Markdown link destinations are explicitly allowed to be relative (this isn’t specific to GitHub):
I’m using the
--markdown
parameter, so there seems not to be ambiguity about the scenario. But I’m fine if you close this as being out of scope for the tool.🎉 This issue has been resolved in version 2.12.0 🎉
The release is available on:
Your semantic-release bot 📦🚀