Skip to content

Version canonicalization redirect adds a spurious trailing slash, resulting in 404 #3036

@kpreid

Description

@kpreid

I’m trying to programmatically generate links to the documentation of the latest compatible version of a library. This requires using a partial version specification, which docs.rs will redirect. However, when the link is to an item and not a module, the redirect incorrectly adds a trailing slash. For example, https://docs.rs/itertools/0.14/itertools/trait.Itertools.html (302) will redirect to

https://docs.rs/itertools/0.14.0/itertools/trait.Itertools.html/ (404)

instead of

https://docs.rs/itertools/0.14.0/itertools/trait.Itertools.html (200)

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