Skip to content

Use rel=canonical to point to the latest version #1006

Closed
@jyn514

Description

@jyn514

Uses the same mechanism as #74, but for a very different purpose.

A common problem using docs.rs is that it's hard to find the latest version of the docs from Google. We mitigate this by having a 'go to latest version' button, but if you land on a search result halfway down the page, the header bar isn't shown. A possible way to get better results is to abuse rel=canonical to point to /:crate/latest/:path so it will be picked up by Google.

It'd be feasible to put rel=canonical in the <head> since we inject styles there already.

#74 should be implemented before this to avoid telling Google we are more canonical than the original documentation.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions