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)