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

The data explorer has a selection of magic aliases to make the results more interactive. :magic_wand: Formatting Data Explorer Table Results

A lot of them work automatically, depending on what table you use. For instance, pulling topic_id from the posts table will make it an interactive link to the topic - but to make the id field in the topics table do the same thing you’d need to add the alias (t.id AS topic_id). Same for the users and posts table as well:

These don’t carry though if you export the results though, and you’ll only get the base id. For that, you can do as moin suggested and build the topic link and alias it as an URL:

1 Like