Skip to content

Documentation: Add canonical relation to HTML output #39241

@SamWhited

Description

@SamWhited

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions