Fix wiki revision pagination (#31760)
Fix #31755 (cherry picked from commit 976f78eb772801a978e2fe9ab35dfb769a8f852b)
This commit is contained in:
parent
5f1017f27d
commit
19fe44e4aa
1 changed files with 1 additions and 0 deletions
|
@ -396,6 +396,7 @@ func renderRevisionPage(ctx *context.Context) (*git.Repository, *git.TreeEntry)
|
|||
|
||||
pager := context.NewPagination(int(commitsCount), setting.Git.CommitsRangeSize, page, 5)
|
||||
pager.SetDefaultParams(ctx)
|
||||
pager.AddParamString("action", "_revision")
|
||||
ctx.Data["Page"] = pager
|
||||
|
||||
return wikiRepo, entry
|
||||
|
|
Loading…
Reference in a new issue