From 82003a3b47898b7235de175858801b0b9239525d Mon Sep 17 00:00:00 2001 From: Giteabot Date: Sun, 4 Aug 2024 10:45:41 +0800 Subject: [PATCH] Fix wiki revision pagination (#31760) (#31772) Backport #31760 by @lunny Fix #31755 Co-authored-by: Lunny Xiao --- routers/web/repo/wiki.go | 1 + 1 file changed, 1 insertion(+) diff --git a/routers/web/repo/wiki.go b/routers/web/repo/wiki.go index ff6397cd2a8..13b6a7b8e3b 100644 --- a/routers/web/repo/wiki.go +++ b/routers/web/repo/wiki.go @@ -410,6 +410,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