How to add a slug prefix in Sanity CMS (Quick Guide)

Reading Time: 1 minutes

Let's keep this article super short, all you need to do to add a prefix, or to modify your slug generation, is use the slugify option.

For instance, if you want all of your blog articles to be prefixed by /blog, you'd do the following:

And that is all you need to do, super simple. You might have some other things you have to do, to get your content siloed properly, but this should give you a basic understanding.

If you found this article useful, please share it with your friends :)

Enjoyed this article? Please share it