I’m using the discourse API to retrieve a Topic / all its posts and then each post and and its content
My forums are hosted on
I use the API to retrieve the posts and place them on my
www.xxx.com domain and link back and forth between the two,
This all works except that the content i pull through uses relative URLs - so a link to a user (when on the forums domain) would be
As i pull that post through to my www.x domain, it links to
www.xxx.com/u/the-user - which obviously does not exist.
The same problem extends to any emojis or images included in the post - the links are broken.
Is there anyway to have the links coming through (i use content:
data['cooked']) to link back to the original domain?