# Synchronising log out of discourse when logging out of WordPress

**URL:** <https://meta.discourse.org/t/synchronising-log-out-of-discourse-when-logging-out-of-wordpress/48823>\
**Category:** WordPress\
**Created:** [18 augustus 2016 om 19:01 UTC](https://meta.discourse.org/t/synchronising-log-out-of-discourse-when-logging-out-of-wordpress/48823 "2016-08-18T19:01:21Z")\
**Posts on this page:** 1\
**Showing post:** 10

<div class="post-metadata">

**Author:** ![simon](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/simon/32/339122_2.png) [@simon](https://meta.discourse.org/u/simon)\
**Post date:** [18 augustus 2016 om 20:59 UTC](https://meta.discourse.org/t/synchronising-log-out-of-discourse-when-logging-out-of-wordpress/48823/10 "2016-08-18T20:59:56Z")

</div>

Yes that should work, but the link should be structured something like this:

```plaintext
<a href="http://forum.yourdomain.com/session/sso?return_path=http://forum.yourdomain.com/t/my-latest-blog-post/78">Start the discussion</a>

```

The links I see on your site are just pointing directly at your forum. What theme are you using? I can look at this more later today.

Edit:

I tried using my browser’s dev tools to edit the link to your forum that is on this page: [http://open-dialogue.net/open-dialogues-in-the-present-and-the-future-new-developments/](http://open-dialogue.net/open-dialogues-in-the-present-and-the-future-new-developments/) by changing it to:

`<a class="button" target="_blank" href="http://forum.open-dialogue.net/session/sso?return_path=http://forum.open-dialogue.net/t/open-dialogues-in-the-present-and-the-future-new-developments-jaakko-seikkula/15">Start Discussion</a>`

the sso login works as expected. The thing to do is to figure out why the link is being returned in the form that it is. I would expect the wp-discourse plugin to be returning it with a similar structure to the way I have edited it.

---

_[View the full topic](https://meta.discourse.org/t/synchronising-log-out-of-discourse-when-logging-out-of-wordpress/48823)._
