question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Links to directories from Markdown local files are reported as 404 even when they exist

See original GitHub issue
pi@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:closed
  • Created 3 years ago
  • Comments:5 (2 by maintainers)

github_iconTop GitHub Comments

1reaction
DavidAnsoncommented, Dec 24, 2020

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.

0reactions
github-actions[bot]commented, Dec 29, 2020

🎉 This issue has been resolved in version 2.12.0 🎉

The release is available on:

Your semantic-release bot 📦🚀

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found