Skip to content

Crates in "New Crates" and "Just Updated" sections on homepage display version v0.0.0 after navigating back from crate details page #11772

@kitt159

Description

@kitt159

Current Behavior

On the homepage, the list of new and just updated crates shows the correct versions initially. However, after clicking on a crate to view its details and then using the browser’s back button to return to the homepage, the crate’s version is incorrectly displayed as v0.0.0. Refreshing the page restores the correct version.

Expected Behavior

The crate version should remain correctly displayed after navigating back to the homepage from a crate detail page.

Steps To Reproduce

  1. Open crates.io
  2. On the homepage, click on any crate with non-v0.0.0 version to open its detail page.
  3. Use the browser’s back button to return to the homepage.
  4. Observe that the crate’s version now incorrectly shows v0.0.0.

Environment

  • Browser: Mozilla Firefox 141.0.3
  • OS: Arch Linux

and

  • Browser: Google Chrome 139.0.7258.123
  • OS: Android 15

Anything else?

Refreshing the homepage after the issue occurs correctly restores the crate version.

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