Start the discussion link issue

AI-generated summary

paxmanchris reported an issue where the “Start the discussion” link generated by the WordPress-Discourse plugin on a dev server pointed to the wrong URL (http://dev.example.com/...) instead of the configured Discourse URL (http://test.example.com/t/...). While the plugin worked correctly on their production server, the dev environment exhibited this routing error. benword suggested that the problem was likely a configuration or database issue specific to the dev installation rather than a flaw in the plugin itself. paxmanchris later confirmed the issue was resolved by clearing the plugin settings from the database and reinstalling the plugin.

I have my discourse configured to go to, for example, “http://test.example.com”, my wordpress site is on dev.example.com. After I make a post (“A Fun Test”) I get a “Start the discussion at test.example.com” but the link is going to http://dev.example.com/a-fun-test/ when it should go to http://test.example.com/t/a-fun-test/33

My wp-discourse is on this master branch for my test server and production server; and for some reason I cannot duplicate the problem on my production server and production discourse. So this is working in one situation but not the other.

I also have a version of my website running in a virtual machine, and it to seems to be able to post to my test discourse.

Seems like a configuration or database issue on your dev install. There shouldn’t be anything in the plugin itself that would cause this.

I was able to resolve this issue. I cleared the settings from the database and reinstalled the plugin. Thanks for your help