-
Notifications
You must be signed in to change notification settings - Fork 16
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
Fragment errors are reported for redirect pages #120
Comments
How can I reproduce this error? I tried checking out that branch and running
Both of those errors seem to be correct, they're broken links generated by rustdoc (rust-lang/rust#74222). |
Ugh this is fishy, I have the same as you on a different windows PC. Let me investigate a bit. |
is not equivalent to |
@bugadani yes, |
Ok I see, I can reproduce now. This is tricky to fix in general, since it requires knowing whether arbitrary HTML/JS will redirect to another page, independent of HTTP status codes. Fortunately it doesn't need to work in general, it only needs to work for the pages rustdoc generates, which look like this: <!DOCTYPE html>
<html lang="en">
<head>
<meta http-equiv="refresh" content="0;URL=../../embedded_graphics/prelude/trait.DrawTarget.html">
</head>
<body>
<p>Redirecting to <a href="../../embedded_graphics/prelude/trait.DrawTarget.html">../../embedded_graphics/prelude/trait.DrawTarget.html</a>...</p>
<script>location.replace("../../embedded_graphics/prelude/trait.DrawTarget.html" + location.search + location.hash);</script>
</body>
</html> I think a sufficient workaround is to look for |
When a type is exported in a prelude, rustdoc sometimes generates a redirection page. Funny enough, sometimes the destination page is in the prelude module, but this issue is not about that.
deadlinks doesn't follow redirection pages and reports
Fragment #... at ... does not exist!
errors. An example of this can be found here: https://github.com/embedded-graphics/embedded-text/runs/1453160019?check_suite_focus=true - in this case the fragment exists atembedded_graphics/prelude/trait.DrawTarget.html#associatedtype.Error
The text was updated successfully, but these errors were encountered: