How can I add title to topic detail url

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.