Link to Topic or Post from external site

I want to display links to forum topics or posts on my site. When selected the user will be directed to my discourse instance and logged in. Currently they are directed to the latest topics after authentication but I would like to link directly to the Topic or post they selected. What is the best approach to achieve this? For Authentication I am passing a JWT and using the OAuth2_authenticator. How do I pass the desired destination url?