Wrong path after update of permalinks - bug?

Howdy,

I have a Wordpress install that is successfully connected to Discourse using the excellent WP-Discourse plugin. I have just transferred my Wordpress site from its old domain name of webcomics.yaoi911.com to its new domain name of youngprotectors.com. Nothing else has changed, just the domain name, the rest of the URL structure is the same.

But all my Wordpress to Discourse posts are still showing the old URL:

I’d like to change all references to my old domain name to the new domain name in my Discourse install.

I did a search here and found a thread from 2017 which indicated that the best way to do that was through the Rails Console. I’ve never done any edits that way before, but I’m up to learn something new. :slight_smile:

I just wanted to make sure that this is still the preferred method of solving this. I think all I need to do is copy and paste this code into the command line after logging into my rails console:

Am I understanding what to do correctly, @simon? Is that the best way? Will it also change the links in the content of the posts?

Please let me know if you get a chance. Thanks!

Alex

2 Likes