Adding a direct link to a topic in a data explorer query

I think you can create the URL as described in Allow topic links in reports to be clickable - #2 by JammyDodger. If you don’t have the slug, you could just add, for example, “-” as Discourse relies on the topic ID.