aboutsummaryrefslogtreecommitdiffstats
path: root/routers/web/user
diff options
context:
space:
mode:
authorwxiaoguang <wxiaoguang@gmail.com>2024-03-03 01:38:38 +0800
committerGitHub <noreply@github.com>2024-03-02 17:38:38 +0000
commitbf6502a8f7a2e9a2b64b43b7733316d863c9a768 (patch)
tree4b06bddb42d4c5a01c7abbada2824d2eec0bbee4 /routers/web/user
parent70c126e6184872a6ac63cae2f327fc745b25d1d7 (diff)
downloadgitea-bf6502a8f7a2e9a2b64b43b7733316d863c9a768.tar.gz
gitea-bf6502a8f7a2e9a2b64b43b7733316d863c9a768.zip
Fix incorrect relative/absolute URL usages (#29531)
Add two "HTMLURL" methods for PackageDescriptor. And rename "FullWebLink" to "VersionWebLink"
Diffstat (limited to 'routers/web/user')
-rw-r--r--routers/web/user/package.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/routers/web/user/package.go b/routers/web/user/package.go
index 4f3de13dfb..3ecc59a2ab 100644
--- a/routers/web/user/package.go
+++ b/routers/web/user/package.go
@@ -163,7 +163,7 @@ func RedirectToLastVersion(ctx *context.Context) {
return
}
- ctx.Redirect(pd.FullWebLink())
+ ctx.Redirect(pd.VersionWebLink())
}
// ViewPackageVersion displays a single package version