Skip to content

fix: use latest in URL when version is empty#1064

Merged
shivammathur merged 1 commit intoshivammathur:mainfrom
theluckystrike:main
Mar 4, 2026
Merged

fix: use latest in URL when version is empty#1064
shivammathur merged 1 commit intoshivammathur:mainfrom
theluckystrike:main

Conversation

@theluckystrike
Copy link
Copy Markdown
Contributor

@theluckystrike theluckystrike commented Mar 4, 2026

Fixes #1063

When version is not specified (empty string), the getUrl function was generating invalid URLs like without any version, which returned 404.

This fix ensures that when version is empty or 'latest', the URL includes '/latest/' which GitHub handles correctly with a redirect to the actual latest release.


Contributed by theluckystrike | Zovo — Chrome Extension Studio

When version is not specified (empty string), the getUrl function
was generating invalid URLs like /releases/download/cs2pr without
any version, which returned 404.

This fix ensures that when version is empty or 'latest', the URL
includes '/latest/' which GitHub handles correctly with a redirect
to the actual latest release.

Fixes #1063
@codecov
Copy link
Copy Markdown

codecov Bot commented Mar 4, 2026

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 100.00%. Comparing base (a8ca9e3) to head (746e1a4).
⚠️ Report is 2 commits behind head on main.

Additional details and impacted files
@@            Coverage Diff            @@
##              main     #1064   +/-   ##
=========================================
  Coverage   100.00%   100.00%           
=========================================
  Files            8         8           
  Lines          852       853    +1     
  Branches       302       303    +1     
=========================================
+ Hits           852       853    +1     

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.
  • 📦 JS Bundle Analysis: Save yourself from yourself by tracking and limiting bundle sizes in JS merges.

@shivammathur shivammathur merged commit 650d05d into shivammathur:main Mar 4, 2026
70 checks passed
@shivammathur
Copy link
Copy Markdown
Owner

@theluckystrike Thanks!

@staabm
Copy link
Copy Markdown

staabm commented Mar 4, 2026

thank you!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Bug: cs2pr Failed to download cs2pr

3 participants