A good idea to get the nomenclature right. In Discourse a thread is called a Topic.
The association with a Category is implicit so it’s not needed.
Plus if the Topic is moved to a new Category, the URL would become dated and essentially invalid.
There’s usually no harm in adding a query string parameter if you must.
But what’s your use case? What are you trying to achieve?