Fix wiki revision pagination (#31760)
Fix #31755 (cherry picked from commit 976f78eb772801a978e2fe9ab35dfb769a8f852b)
This commit is contained in:
parent
5f1017f27d
commit
19fe44e4aa
|
@ -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 New Issue