strip out references to rustdoc's custom favicon #330
Closed
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Starting in rust-lang/rust#57552, rustdoc started packaging in a default column logo and favicon. We started hosting the logo in #290, but ignored the favicon, since docs.rs has its own. However, since rustdoc includes a
<link rel="shortcut icon">
tag in the<head>
, this overrides the behavior of using/favicon.ico
, and creates a lot of extra 404s as people try to access a favicon that isn't there. This PR strips out that favicon reference, which puts a favicon back into documentation pages again.(Note that this will also strip out custom favicons provided by crates, like the one used by Rocket. If desired, i could add in a different check that would only filter out ones rooted locally (path either begins with
/
or..
) which would allow custom favicons set by crates to still work.)