# After login it redirects to WP. can it return users back where they came from?

**URL:** <https://meta.discourse.org/t/after-login-it-redirects-to-wp-can-it-return-users-back-where-they-came-from/67061>\
**Category:** WordPress\
**Created:** [2017 年7 月 29 日 11:16 UTC](https://meta.discourse.org/t/after-login-it-redirects-to-wp-can-it-return-users-back-where-they-came-from/67061 "2017-07-29T11:16:26Z")\
**Posts on this page:** 1\
**Showing post:** 4

<div class="post-metadata">

作者： ![simon](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/simon/32/339122_2.png) [@simon](https://meta.discourse.org/u/simon)\
发布日期： [2017 年7 月 30 日 17:00 UTC](https://meta.discourse.org/t/after-login-it-redirects-to-wp-can-it-return-users-back-where-they-came-from/67061/4 "2017-07-30T17:00:34Z")

</div>

> [@Andy02](#):
>
> i’ve set it to return users to the forum now

I’ve tried it. When I am logged into WordPress and not logged into the forum, clicking the login link on the forum is working correctly - my credentials are checked on WordPress and I’m automatically redirected back to Discourse as a logged in user. When I am not logged into either Discourse or WordPress and click the Discourse login link, I’m redirected to WordPress and am able to complete the login process, but I’m not automatically redirected back to the forum. There are a couple of things that could be causing this problem.

> [@Andy02](#):
>
> is confusing to users who click login at our wordpress site as they end up somewhere they didn’t want, or expect to be

I’m not sure what’s going on here. It seems to be working correctly for me. The [WP Discourse](https://github.com/discourse/wp-discourse) plugin should not be having any effect on the WordPress login process when a user clicks on a login link from inside of WordPress. If it is, there’s a problem.

I see you have a multisite WordPress setup. It’s possible that some of the trouble you’re having is related to this. Do you have access to the network settings? Do you know if the Network ‘Multisite Configuration’ option has been enabled? It’s purpose is to give all subsites on a network access to the same Discourse forum. It seems like it could be useful for your case. If you have any trouble setting this up, get in touch with me and I can try to help.

---

_[View the full topic](https://meta.discourse.org/t/after-login-it-redirects-to-wp-can-it-return-users-back-where-they-came-from/67061)._
