Look at the custom fields for the post. What is the value for discourse_permalink? Also try disabling SSO.
discourse_permalink
(Relevant plugin file.)