# 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:** [17. Mai 2017 um 14:16 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:** 12

<div class="post-metadata">

**Author:** ![bts](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/bts/32/184556_2.png) [@bts](https://meta.discourse.org/u/bts)\
**Post date:** [9. Juni 2017 um 17:04 UTC](https://meta.discourse.org/t/possible-bug-with-redirect-after-discourse-login-field/62883/12 "2017-06-09T17:04:52Z")

</div>

Hi @simon, I have perhaps a similar question…we’re using Woocommerce Memberships and this “WP auto-login to Discourse + redirect back to WP” isn’t working as expected. I thought it might be because I already have some custom redirects set up related to Woocommerce member registration, but actually can’t get it even with those disabled.

I’m currently using:  
filter on ‘woocommerce\_login\_redirect’ - to send people to main dashboard on login  
action added with ‘template\_redirect’ - to send new members to welcome page immediately after checkout  
filter also on ‘woocommerce\_registration\_redirect’ - to do the same with free (non-purchase) members

However, testing even with all these completely removed from my functions.php, I’m not seeing the expected behavior. When I log in (using the Woocommerce ‘/my-account/’ login url) it doesn’t seem to be redirecting to Discourse and back; if I visit our forum url directly after logged in on WP, I’m not logged in on Discourse.

I think I have all the settings correctly configured including ‘sso allows all return paths = true’…and everything else is working fine with SSO between the sites. If I append ‘/session/sso’ to the Discourse URL it logs me right in. Anything non-obvious I might be overlooking, or possible conflicts you could think of with Woocommerce? I could send you screenshots of my configs if it might help troubleshoot.

---

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