From 19fe44e4aa33db8cb6493a90b0b456f8cba94ef3 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 (cherry picked from commit 976f78eb772801a978e2fe9ab35dfb769a8f852b) --- 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 4911fb6452..1fd080021d 100644 --- a/routers/web/repo/wiki.go +++ b/routers/web/repo/wiki.go @@ -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