-
-
Notifications
You must be signed in to change notification settings - Fork 5.7k
New issue
Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? # to your account
Fix incorrect relative/absolute URL usages #29531
Conversation
Wait for more reviews from #20280
It really looks strange to me. |
What is a HTML URL? I find that a confusing term we should remove. |
Agree, I would prefer something like |
I have the same feeling long time ago. But GitHub also uses "html_url" https://docs.github.com/en/rest/repos/contents?apiVersion=2022-11-28 And this PR is just a quick fix. If most people would like to rename, I think it needs a plan & design ahead. |
TLDR: at the moment, in most cases, "Link" means relative URL ( |
If there is no more idea about whether it is right, I will just keep it as the old code (a relative link), and merge. New fixes could be done in the future. |
Currently looking for an answer. 👍 |
Should be an absolute URL but not to a package but to the registry itself. gitea/routers/api/packages/npm/npm.go Lines 74 to 77 in 70c126e
|
Thank you very much. Done in 0625d18 |
Add two "HTMLURL" methods for PackageDescriptor. And rename "FullWebLink" to "VersionWebLink"
* upstream/main: Breaking summary for template refactoring (go-gitea#29395) [skip ci] Updated translations via Crowdin Fix incorrect cookie path for AppSubURL (go-gitea#29534) gitea.service: Remove syslog.target (go-gitea#29550) Add option to set language in admin user view (go-gitea#28449) Fix elipsis button not working if the last commit loading is deferred (go-gitea#29544) Fix incorrect relative/absolute URL usages (go-gitea#29531) Add support for API blob upload of release attachments (go-gitea#29507) Fix queue worker incorrectly stopped when there are still more items in the queue (go-gitea#29532) remove util.OptionalBool and related functions (go-gitea#29513) Rename Action.GetDisplayName to GetActDisplayName (go-gitea#29540) Make PR form use toast to show error message (go-gitea#29545)
Add two "HTMLURL" methods for PackageDescriptor. And rename "FullWebLink" to "VersionWebLink"