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
- Open crates.io
- On the homepage, click on any crate with non-v0.0.0 version to open its detail page.
- Use the browser’s back button to return to the homepage.
- 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.