Sections and taxonomy terms permalinks

Hello!
How can I change the permalink to list page for sections and taxonomy terms?

# config.toml
...
[taxonomies]
  post_tags = "post_tags"
[permalinks]
  posts = "/artykuly/:slug/"
  post_tags = "/artykuly/tehi/:title/"
+++
# content/posts/my-first-post.md
title = "My First Post"
date = 2018-11-29T19:34:12+03:00
draft = false
post_tags = ["tag1", "tag2", "tag3"]
+++

I get:
/posts/ (list of posts)
/artykuly/my-first-post/ (post)
/post_tags/ (list of taxonomy terms)
/artykuly/tehi/tag1/ (list of taxonomy term pages)

But I expected:
/artykuly/ (list of posts)
/artykuly/my-first-post/ (post)
/artykuly/tehi/ (list of taxonomy terms)
/artykuly/tehi/tag1/ (list of taxonomy term pages)

To override the section URL, check Override section url.

I’m not sure you can override the URL for the taxonomy terms page (/artykuly/tehi/), though. From the taxonomies doc:

Much like regular pages, taxonomy list permalinks are configurable, but taxonomy term page permalinks are not.

You’ll need load that in a different manner, and I’m not sure if pagination can be used in that context… but search around! :slight_smile:

2 Likes

Thank you! I was able to change the section URL.
But unfortunately most likely the changing taxonomy terms page permalinks has not yet implemented. I have seen on github several issues that describes this problem, but they were not interesting to anyone. I wrote for myself the small dirty hack that solves my problem.

# config.toml 
...
[permalinks]
  posts = "/artykuly/:slug/"
  posts_listpath = "/artykuly/"
  post_tags = "/artykuly/tehi/:title/"
  post_tags_listpath = "/artykuly/tehi/"