# WP-Discourse Force SSO?

**URL:** <https://meta.discourse.org/t/wp-discourse-force-sso/91932>\
**Category:** WordPress\
**Created:** [July 10, 2018, 5:04am UTC](https://meta.discourse.org/t/wp-discourse-force-sso/91932 "2018-07-10T05:04:52Z")\
**Posts on this page:** 1\
**Showing post:** 4

<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:** [July 13, 2018, 10:04pm UTC](https://meta.discourse.org/t/wp-discourse-force-sso/91932/4 "2018-07-13T22:04:17Z")

</div>

> [@Speck\_of\_the\_Cosmos](#):
>
> Even now log in with discourse doesn’t redirect back to the page I was on and instead sends me to the home page. It seems like the plugin is unaware of the redirect behavior.

Are there any other plugins on your site that are setting a login redirect? Before the [WP Discourse](https://github.com/discourse/wp-discourse) plugin redirects the user to the URL provided in the `redirect_to` parameter, it calls the `wp_login` action. If another plugin is hooking into this action to redirect users, it will always take precedence.

> [@Speck\_of\_the\_Cosmos](#):
>
> Will that work for redirects?

Unless another plugin is overriding the behaviour, it will always redirect the user to the URL you have added to the `redirect_to` parameter. If there is a redirect in place from that URL to another one, it will be applied.

---

_[View the full topic](https://meta.discourse.org/t/wp-discourse-force-sso/91932)._
