The environment: I have a Discourse forum and a website. The website has pages. The pages use embedded Discourse topics for commenting.
As part of a migration process I am currently using a hard-coded mapping of “webpage url” to “Discourse topic id” and use server-side code on the webpages to embed the appropriate Discourse topic.
This works well for all existing webpages because I migrated previous comments into Discourse topics.
For new webpages it would be too much overhead to a) create a new topic and b) continue to track the new mappings between webpages and topics. So I would like to switch to Discourse’s own logic for creating topics on-demand and not specify the existing topic IDs on the webpages anymore.
I assume that Discourse has its own mapping table to know which topic to serve if a request for an embedded comment thread comes in.
Is that the case and can I manually insert my existing mappings there, then switch my webpages to use that functionality?