-
Notifications
You must be signed in to change notification settings - Fork 82
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Relative files issue #34
Comments
🎉 This issue has been resolved in version 1.1.5 🎉 The release is available on: Your semantic-release bot 📦🚀 |
Hey, @JustinBeckwith thanks for the quick patch! Unfortunately, it seems to still fail. :/ See https://travis-ci.org/twbs/bootstrap/jobs/494434529#L1443 |
I'm like 99% sure we got it this time 😆 I ran it against the bootstrap generated docs just to make sure I'm not nutz, and everthing looks to work. Thanks for being patient! |
🎉 This issue has been resolved in version 1.1.6 🎉 The release is available on: Your semantic-release bot 📦🚀 |
Yup, confirmed, thanks! |
It seems like this no longer works, I'm getting false positives for relative links (links starting with Update: It seems to fail for us on links without a trailing slash. Our site generator (middleman) generates an Update 2: On testing, it looks like PR Here: #71 |
I get the following when running
Here's the HTML:
I assume the 404 reported by Linkinator is because the However, I get similar problems with In other words, I don't understand how to run Linkinator in a way that can handle relative (or root-relative) links. |
@JustinBeckwith due #71 and message from @meleyal – I can give a practical example. We're using the Linkinator in our Neon docs. On the page https://neon.tech/docs/reference/api-reference/ there are two relative links: You can check, that them are perfectly working in browser. Also, these links are web-correct. And when I'm checking this page by the Linkinator: npm run check:broken-links -- https://neon.tech/docs/reference/api-reference I'm getting errors: {
"links": [
{
"url": "https://neon.tech/manage/api-keys",
"status": 404,
"state": "BROKEN",
"parent": "https://neon.tech/docs/reference/api-reference"
},
{
"url": "https://neon.tech/manage/branches/",
"status": 404,
"state": "BROKEN",
"parent": "https://neon.tech/docs/reference/api-reference"
}
],
"passed": false
} But! If I'm passing to the Linkinator the same link with trailing slash: npm run check:broken-links -- https://neon.tech/docs/reference/api-reference/ There are no errors: {
"links": [],
"passed": true
} |
@sashasushko could I trouble you to open this as a new issue? Makes it much easier to make sure I get around to a fix! |
@JustinBeckwith done – #529 |
BTW It seems when a link is relative it wrongfully is detected as broken.
For example:
navbar-top.css
is linked inhttp://localhost:5180/docs/4.3/examples/navbar-static/
with<link href="navbar-top.css" rel="stylesheet">
.At first I thought it was a Windows specific issue but it seems it fails on Travis CI too: https://travis-ci.org/twbs/bootstrap/jobs/494265231#L1399
The text was updated successfully, but these errors were encountered: