# Canonical tag with pagination

**URL:** <https://discourse.gohugo.io/t/canonical-tag-with-pagination/45140>\
**Category:** support\
**Tags:** pagination\
**Created:** [July 4, 2023, 8:52am UTC](https://discourse.gohugo.io/t/canonical-tag-with-pagination/45140 "2023-07-04T08:52:47Z")\
**Posts on this page:** 1\
**Showing post:** 2

<div class="post-metadata">

**Author:** ![Arif](https://yyz2.discourse-cdn.com/flex036/user_avatar/discourse.gohugo.io/arif/32/20931_2.png) [@Arif](https://discourse.gohugo.io/u/Arif)\
**Post date:** [July 4, 2023, 9:19am UTC](https://discourse.gohugo.io/t/canonical-tag-with-pagination/45140/2 "2023-07-04T09:19:07Z")

</div>

See the answer below. If you need more help, share a link to your Git repository with your code

> [@Permalink does not return the correct page](https://discourse.gohugo.io/t/permalink-does-not-return-the-correct-page/42525/6):
>
> You are running into this: [https://github.com/gohugoio/hugo/issues/4507](https://github.com/gohugoio/hugo/issues/4507) This is a detailed description of the situation: [https://discourse.gohugo.io/t/determine-if-current-page-is-result-of-pagination/37494/4](https://discourse.gohugo.io/t/determine-if-current-page-is-result-of-pagination/37494/4) The trick is to paginate before trying to access the pager number. [https://discourse.gohugo.io/t/control-pagination-and-page-collections-from-baseof-html/37643/8](https://discourse.gohugo.io/t/control-pagination-and-page-collections-from-baseof-html/37643/8) The second topic includes a detailed example that you can clone and test.

---

_[View the full topic](https://discourse.gohugo.io/t/canonical-tag-with-pagination/45140)._
