# Possible bug with 'Redirect After Discourse Login' field

**URL:** <https://meta.discourse.org/t/possible-bug-with-redirect-after-discourse-login-field/62883>\
**Category:** WordPress\
**Created:** [May 17, 2017, 2:16pm UTC](https://meta.discourse.org/t/possible-bug-with-redirect-after-discourse-login-field/62883 "2017-05-17T14:16:17Z")\
**Posts on this page:** 1\
**Showing post:** 2

<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:** [May 18, 2017, 6:06pm UTC](https://meta.discourse.org/t/possible-bug-with-redirect-after-discourse-login-field/62883/2 "2017-05-18T18:06:21Z")

</div>

> [@apautler](#):
>
> Ideally I’d have the user redirect back to the forum homepage after coming to the login page from that URL

The way it’s intended to work is that when a user clicks on the login link on the forum, they should be redirected back to the forum. When a user logs in directly from the WordPress site, if ‘Create Discourse User on Login’ is enabled, they should be redirected to the URL that’s set in the ‘Redirect After Discourse Login’ setting.

I’ve tried it in my development environment with ‘/dashboard’ set as the ‘Redirect After Discourse Login’ URL and it’s working correctly there.

I have seen problems with the SSO login redirects when another plugin is hooking into the WordPress `login_redirect`. Paid Memberships Pro is an example of a plugin that causes a problem with the login redirect. If this is the case, and we can figure out which plugin is causing the problem, there is probably a way to work around it.

---

_[View the full topic](https://meta.discourse.org/t/possible-bug-with-redirect-after-discourse-login-field/62883)._
