How to create hierarchized URL for posts under categories

Hi,

Is there a way to save a blog post with a URL with a slug?
I want to have posts of specific categories (eg. having the same category tag) appear under the same slug, eg. /podcasts/episode-one instead of /podcasts-episode-one.
I tried to set the slug when saving the blog post but Ghost has rewritten the URL to the second version.
Mind that I’m not using the latest Ghost version (using 4.2.1).

You could modify the routes.yaml, here is the default:

routes:

collections:
  /:
    permalink: /{slug}/
    template: index

taxonomies:
  tag: /tag/{slug}/
  author: /author/{slug}/

You can modify the permalink and add the {primary_tag}.

routes:

collections:
  /:
    permalink: /{primary_tag}/{slug}/
    template: index

taxonomies:
  tag: /tag/{slug}/
  author: /author/{slug}/

I hope this helps.

I already tried the one simply with slug, not the one with primary_tag, will check that out

Biron Themes via Ghost Forum <ghost2@discoursemail.com> (időpont: 2021. aug. 18., Sze, 17:56) ezt írta:

Checked, works fine!