We’re establishing multiple Discourse sites internally. Sometimes we need to move topics from one site to another. In this case we need to apply redirection for moved topics. But permalinks won’t work for internal discourse topic urls.
For example permalink won’t redirect from
http://site2.com/t/sample-topic/1234. It will just return 404 not found when it can’t find the topic on first site.
I’ve tried creating permalinks like following:
Permalink.create(url: '/t/sample-topic/1234', external_url: 'http://site2.com/t/sample-topic/1234')
Any workaround to get permalink work for internal urls?