Hello, I was using {{ range (.Paginator 24).Pages }}
to show exactly 24 tags on my tags index and it was working perfectly but after I found that there is a problem with canonicals tags on google search console I used this:
{{- if .Paginator }}
{{- if .Paginator.HasPrev }}
<link rel="prev" href="{{ .Paginator.Prev.URL | absURL }}" />
{{- end }}
{{- if .Paginator.HasNext }}
<link rel="next" href="{{ .Paginator.Next.URL | absURL }}" />
{{- end }}
<link rel="canonical" href="{{ .Paginator.URL | absURL }}" />
{{- else }}
<link rel="canonical" href="{{ .Permalink }}" />
{{- end }}
on my baseof to fix it, but it seems that this broke the pagination on my tags index,