Category name in URL

AI-generated summary

Category name in URL discussion revolves around adding category names to topic URLs. Howen initially inquired about the possibility, referencing a previous topic. codinghorror clarified that category names appear in title tags. tobiaseigen explained that adding category names to topic URLs is a different issue and might result in long URLs, potentially causing issues with Google friendliness and Discourse’s URL handling.

Hello,

Is it possible to change my forum’s urls to have category name inside it ?
I have found this topic but I have looked everywhere and I have found no option in admins menus.

The category is in the <title> tag as I recall. But I don’t see it there now. Not sure why we closed that other topic, @tobiaseigen do you remember?

1 лайк

Ok, I see it !!! :heart_eyes:

Thank you !

1 лайк

Maybe I’m mistaken about what that topic was about - I thought it was about having the category show up in title and url of the category pages.

If it’s about having the category name in the topic urls then that’s a different issue altogether - not an entirely bad idea to add it but might make for very long URLs, e..g:

https://meta.discourse.org/t/features-category-name-in-url/29113

A slash between category and topic title would probably be more google friendly but would probably wreak havoc with the way urls are handled within discourse.

https://meta.discourse.org/t/features/category-name-in-url/29113

Category name does show up in topic titles as you said.

1 лайк