zed/crates/auto_update_ui
Ruben Fricke d3f051031f
auto_update: Strip pre-release and build metadata from release notes URL (#48570)
Without this fix, the zed.dev server doesn't recognize the version with
metadata and redirects to /releases, which
defaults to the Stable channel, so Preview users end up seeing Stable
release notes.

Closes #47539

  Changes:
- Strip pre and build metadata from the semver version in
release_notes_url before constructing the path, so the URL
becomes /releases/preview/0.218.0 instead of
/releases/preview/0.218.0-beta.1+preview.131.68e98a53.
- Standardized the ordering of pre/build clearing to pre-first across
all 4 call sites (2 were build-first).



Open question: With this fix, the URL now points to the specific version
you're running (e.g.
/releases/preview/0.218.0). An alternative would be to link to
/releases/preview (no version) so users can see all
Preview releases, including ones newer than what they have installed. I
went with per-version linking since it matches
the existing intent of the code, but happy to change it if the team
prefers the other approach.

  Release Notes:

- Fixed "View Release Notes" in Preview/Stable opening the wrong release
channel page due to build metadata in the URL.
2026-03-18 09:53:06 +01:00
..
src auto_update: Strip pre-release and build metadata from release notes URL (#48570) 2026-03-18 09:53:06 +01:00
Cargo.toml auto_update_ui: Add announcement toast component (#49543) 2026-02-19 10:41:16 -03:00
LICENSE-GPL Extract auto_update_ui crate (#21008) 2024-11-21 14:11:57 -05:00