Fix wiki revision pagination (#31760)

Fix #31755
This commit is contained in:
Lunny Xiao 2024-08-04 02:35:55 +08:00 committed by GitHub
parent 2a1ed0cc11
commit 976f78eb77
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 1 additions and 0 deletions

View File

@ -410,6 +410,7 @@ func renderRevisionPage(ctx *context.Context) (*git.Repository, *git.TreeEntry)
pager := context.NewPagination(int(commitsCount), setting.Git.CommitsRangeSize, page, 5) pager := context.NewPagination(int(commitsCount), setting.Git.CommitsRangeSize, page, 5)
pager.SetDefaultParams(ctx) pager.SetDefaultParams(ctx)
pager.AddParamString("action", "_revision")
ctx.Data["Page"] = pager ctx.Data["Page"] = pager
return wikiRepo, entry return wikiRepo, entry