From 6476a7b775ce212f4265994c73671bfb6491fc88 Mon Sep 17 00:00:00 2001 From: techknowlogick Date: Thu, 17 Apr 2025 15:58:12 -0400 Subject: [PATCH] fix pagination in admin dashboard --- routers/web/admin/ips.go | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/routers/web/admin/ips.go b/routers/web/admin/ips.go index 08fd9d7a41..3ba6056303 100644 --- a/routers/web/admin/ips.go +++ b/routers/web/admin/ips.go @@ -96,7 +96,9 @@ func IPs(ctx *context.Context) { ctx.Data["Keyword"] = keyword // Setup pagination - ctx.Data["Page"] = context.NewPagination(int(count), setting.UI.Admin.UserPagingNum, page, 5) + pager := context.NewPagination(int(count), setting.UI.Admin.UserPagingNum, page, 5) + pager.AddParamFromRequest(ctx.Req) + ctx.Data["Page"] = pager ctx.HTML(http.StatusOK, tplIPs) }