Is it possible to have a custom URL for a category list page?

This seems to work (couldn’t figure out how to get it working with the nested where statement, but same effect):

{{ define "main" }}
<div class="post">
  {{$tools := where .Site.RegularPages "Section" "tool"}}
  {{range $tools}}
  {{ if in .Params.categories "best" }}
  <p><span><a href="{{ .Permalink }}">{{ .Title }}</a> <time class="pull-right post-list">{{ .Date.Format "Mon, Jan 2, 2006" }}</time></span></p>
  {{end}}
  {{end}}

</div>
{{ end }}

So I think maybe the second part of the where statement was causing an issue

I think one can. Aliases can get mixed up if multiple aliases are pointing to the same URL (I believe the order is random, but of course the last render wins), but I’ve test aliases back and forth, to and from taxonomy pages, and it works fine.

Hence why I suggested using aliases on /best-tools/, pointing to all the pages it would be replacing.

@arikroc, a shortcut to helping us reproduce your steps is to build the test site, and then make it available online. Then we can just clone and run it for ourselves. :slight_smile:

@arikroc Instead of the where statement, call the items with Hugo’s taxonomy templating: https://gohugo.io/templates/taxonomy-templates/#list-content-with-the-same-taxonomy-term

@maiki Good point, thank you!

@budparr Ah, much cleaner, thanks