# Howto replace pagination "refresh" with 301 redirect?

**URL:** <https://discourse.gohugo.io/t/howto-replace-pagination-refresh-with-301-redirect/25435>\
**Category:** support\
**Tags:** pagination\
**Created:** [May 12, 2020, 8:12am UTC](https://discourse.gohugo.io/t/howto-replace-pagination-refresh-with-301-redirect/25435 "2020-05-12T08:12:47Z")\
**Posts on this page:** 1\
**Showing post:** 2

<div class="post-metadata">

**Author:** ![maiki](https://yyz2.discourse-cdn.com/flex036/user_avatar/discourse.gohugo.io/maiki/32/16384_2.png) [@maiki](https://discourse.gohugo.io/u/maiki)\
**Post date:** [May 12, 2020, 9:05am UTC](https://discourse.gohugo.io/t/howto-replace-pagination-refresh-with-301-redirect/25435/2 "2020-05-12T09:05:10Z")

</div>

> [@INFO Alias messages, but I'm not using Aliases](https://discourse.gohugo.io/t/info-alias-messages-but-im-not-using-aliases/6460/4):
>
> We create an alias for page 1 to enable “endless scrolling” via javascript.

I’m not sure if it picks up paginated aliases, but you can try to shortcode at:

> [@Aliases listed in output, but not used in project](https://discourse.gohugo.io/t/aliases-listed-in-output-but-not-used-in-project/22128/6):
>
> Yeah, I got that from the topic. What I’m suggesting is a way to directly see what they are, to help you debug. nerd In case others find their aliases ponderous, here’s a shortcode for ya; copy to layouts/shortcodes/whatthealiases.html: {{ range $p := .Site.Pages -}} \<pre\> \<code\> {{ range .Aliases }} {{ . | printf "%-35s" }} {{ $p.RelPermalink -}} {{ end -}} \</code\> \</pre\> {{- end -}} That’s the code from [https://gohugo.io/news/http2-server-push-in-hugo/](https://gohugo.io/news/http2-server-push-in-hugo/), with some formatting for …

---

_[View the full topic](https://discourse.gohugo.io/t/howto-replace-pagination-refresh-with-301-redirect/25435)._
