Links are broken on my site after Disqus import

In case someone goes through this — we found the solution:

The thing is that when importing Discourse doesn’t “recognize” the links… So it doesn’t track them properly creating this problem.

We had to run a simple command on terminal to make it work. Something along the lines of:

Post.all.find_each{|e| TopicLink.extract_from e}

HTH!