How can I add title to topic detail url

AI-generated summary

Jun wants to modify the topic detail URL on their website to include the topic title and a longer or random ID, making it more searchable like Stack Overflow. Currently, their website’s topic URL is in the format “domainname/t/topic/25”.

itsbhanusharma pointed out that the topic title is already part of the URL in the official Discourse community, as seen in the URL of this topic. However, Jun clarified that this is not the case on their own website, which is in Chinese, and asked if there are any related settings to achieve this.

On my website, topic detail url is like: domainname/t/topic/25. I want to make title as member of the url, so it’s more searchable like stackoverflow.

  1. How to add topic title to it?
  2. The id field is too short and can be traversal,how to fix it with random id?

Thanks.

Topic title is already part of the url. for example, see the url of this topic

https://meta.discourse.org/t/how-can-i-add-title-to-topic-detail-url/334703

and

This is not making any sense to me. What is the ID field and why would you want a random ID in the URL?

Thanks for reply!

  1. my website topic url is: domain name/t/topic/25, no topic title.
  2. id field is too short and can be traversal. I’m not sure whether it has safety issue.

@itsbhanusharma Topic title is already part of the url in Discourse official community. On my own website is not(language: Chinese). Are there any related settings?

Thanks.