summaryrefslogtreecommitdiffstats
path: root/modules/context/pagination.go
diff options
context:
space:
mode:
Diffstat (limited to 'modules/context/pagination.go')
-rw-r--r--modules/context/pagination.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/modules/context/pagination.go b/modules/context/pagination.go
index 4795f650fb..390b4dbdd7 100644
--- a/modules/context/pagination.go
+++ b/modules/context/pagination.go
@@ -39,7 +39,7 @@ func (p *Pagination) AddParam(ctx *Context, paramKey string, ctxKey string) {
// GetParams returns the configured URL params
func (p *Pagination) GetParams() template.URL {
- return template.URL(strings.Join(p.urlParams[:], "&"))
+ return template.URL(strings.Join(p.urlParams, "&"))
}
// SetDefaultParams sets common pagination params that are often used