From 268e8bc56555fbff42935b567a342ee46355ec80 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E2=98=99=E2=97=A6=20The=20Tablet=20=E2=9D=80=20GamerGirla?= =?UTF-8?q?ndCo=20=E2=97=A6=E2=9D=A7?= Date: Tue, 25 Nov 2025 21:20:29 -0500 Subject: [PATCH] fix repo api url --- models/repo/repo.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/models/repo/repo.go b/models/repo/repo.go index 530a498ce4..3610b0cc1b 100644 --- a/models/repo/repo.go +++ b/models/repo/repo.go @@ -391,7 +391,7 @@ func (repo *Repository) APIURL(ctxOpt ...context.Context) string { ctx := util.OptionalArg(ctxOpt, context.TODO()) var groupSegment string if repo.GroupID > 0 { - groupSegment = fmt.Sprintf("group/%d", repo.GroupID) + groupSegment = fmt.Sprintf("group/%d/", repo.GroupID) } return httplib.MakeAbsoluteURL(ctx, setting.AppSubURL+"/api/v1/repos/"+url.PathEscape(repo.OwnerName)+"/"+groupSegment+url.PathEscape(repo.Name)) }