Effect of changing the WordPress site URL

That makes sense. When you try to republish those posts from WordPress, do you get an error message on WordPress?

The links are stored on Discourse. They can probably be rewritten from the rails console. I’m not sure if there’s any other way to do it.