Skip to content

Documentation: Add canonical relation to HTML output #39241

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

Closed
SamWhited opened this issue Jan 22, 2017 · 1 comment
Closed

Documentation: Add canonical relation to HTML output #39241

SamWhited opened this issue Jan 22, 2017 · 1 comment

Comments

@SamWhited
Copy link
Contributor

SamWhited commented Jan 22, 2017

While searching for documentation I've come across out of date old info listed alongside (or in front of) the current stable documentation ("the Python problem") in search results. It would be nice if all generated documentation for rust could include a meta tag telling search engines that the version of the docs it should index is the stable version:

<link href="https://doc.rust-lang.org/nightly/<path>.html" rel="canonical">

See also: https://developer.mozilla.org/en-US/docs/Web/HTTP/Basics_of_HTTP/Choosing_between_www_and_non-www_URLs#Using_%3Clink_relcanonical%3E

@steveklabnik
Copy link
Member

This is a duplicate of #9461. Thank you for filing, though! Adding some of these links on that issue would be helpful. I'm going to close it so that we have one canonical (:wink:) issue for this.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants