Resolve "Get the latest release api produces 404 when tag name has / character"

What does this MR do and why?

This MR updates the latest release api to encode the tag name. This way, the correct tag is requested for the release.

References

Screenshots or screen recordings

Before After
Screenshot_2025-09-03_at_13.31.45 Screenshot_2025-09-03_at_13.31.04
Screenshot_2025-09-03_at_13.31.49 Screenshot_2025-09-03_at_13.31.12

How to set up and validate locally

  1. Visit Code -> Tags and create a tag with a slash in the name
  2. Visit Deploy -> Releases and create a release using this tag
  3. Request the latest release by fetching GET /projects/:id/releases/permalink/latest
  4. Verify the correct release data is returned

MR acceptance checklist

Evaluate this MR against the MR acceptance checklist. It helps you analyze changes to reduce risks in quality, performance, reliability, security, and maintainability.

Related to #499679 (closed)

Merge request reports

Loading