Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix version number links leading to GitHub website #1145

Closed
wants to merge 1 commit into from
Closed

Fix version number links leading to GitHub website #1145

wants to merge 1 commit into from

Conversation

itsschwer
Copy link

The default {url}{version} generates broken links with GitHub urls, which may be used when a mod is imported locally (and has a GitHub website set in its manifest).

This is a quick fix to adjust any GitHub urls to point to {url}/releases/tag/{version} while preserving the default behaviour for non-GitHub urls.

URL Before After
https://github.com/risk-of-thunder/R2API https://github.com/risk-of-thunder/R2API4.4.0 https://github.com/risk-of-thunder/R2API/releases/tag/4.4.0
https://thunderstore.io/package/tristanmcpherson/R2API/ https://thunderstore.io/package/tristanmcpherson/R2API/5.0.5 https://thunderstore.io/package/tristanmcpherson/R2API/5.0.5

Relevant for locally imported mod with a website set in the manifest
@CLAassistant
Copy link

CLAassistant commented Jan 1, 2024

CLA assistant check
All committers have signed the CLA.

@MythicManiac
Copy link
Collaborator

MythicManiac commented Jan 3, 2024

Closing this as this should be addressed by #1140 although slightly differently.

Thank you for the contribution regardless!

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.

3 participants