From 8553b4600e3035b6f6ad6907c37cebd013fa4d64 Mon Sep 17 00:00:00 2001 From: wxiaoguang Date: Mon, 4 Mar 2024 09:02:51 +0800 Subject: Add an trailing slash to dashboard links (#29555) Fix #29533, and add some tests for "base/paginate.tmpl" --- templates/base/paginate.tmpl | 14 ++++++++------ 1 file changed, 8 insertions(+), 6 deletions(-) (limited to 'templates') diff --git a/templates/base/paginate.tmpl b/templates/base/paginate.tmpl index 503817c339..ef7d0b341b 100644 --- a/templates/base/paginate.tmpl +++ b/templates/base/paginate.tmpl @@ -1,13 +1,15 @@ -{{$paginationLink := .Page.GetParams}} +{{$paginationParams := .Page.GetParams}} +{{$paginationLink := $.Link}} +{{if eq $paginationLink AppSubUrl}}{{$paginationLink = print $paginationLink "/"}}{{end}} {{with .Page.Paginater}} {{if gt .TotalPages 1}}