From 976f78eb772801a978e2fe9ab35dfb769a8f852b Mon Sep 17 00:00:00 2001 From: Lunny Xiao Date: Sun, 4 Aug 2024 02:35:55 +0800 Subject: [PATCH] Fix wiki revision pagination (#31760) Fix #31755 --- 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 ff6397cd2..13b6a7b8e 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