Remove categories in slug

I had a site using hugo with some categories. But I don’t want to show ‘categories’ letter on slug (removing it from slug) when clicking on the categories link. How can I do it with config file?

For example my address current site looks like this https://mysite.com/categories/tutorials/
I wanna change to site https://mysite.com/tutorials/

Thank you so much!

You can configure Permalinks in your config file https://gohugo.io/content-management/urls/#permalinks

Thank you for your prompt reply but I could not make my site work like I want. Let me explain more clear. My site has “categories = [“Tutorials”]” in front matter section. It create Tutorials categories link on site like https://mysite.com/categories/tutorials/ . I wanna remove “categories” on url address. Coud you please give me an example? Thank you

You could try something like:

[permalinks]
  categories = "/:title/"
1 Like

Thank you so much. It works like a charm!