I have a “tagcloud” Section and a tagcloud list-page (with a paginator) which works fine:
location @ URL
layout/tagcloud/list.html @ example.com/tagcloud/
When a tagcloud item is clicked on, it goes to
layout/tags/list.html @ example.com/tags/fruits
layout/tags/list.html @ example.com/tags/tech
layout/tags/list.html @ example.com/tags/tech/ibm
etc...
Everything works as intended.
However, if you manually enter these URLs:
example.com/tags or example.com/tags/
You get the list template at:
layout/tags/list.html
…which of course is an individual tag detail template instead of the aggregated tagcloud list, which is a different list.html.
So is there an alias/permalink/redirect/etc scheme I can place in the config.toml or any front-matter so that /tags => /tagcloud?
example.com/tags/ => example.com/tagcloud/
Since they’re both list-pages, what’s the most efficient way to achieve this URL redirection?
Thanks.