I’ve been chatting with Arpit about the some issues with the redirect URL after you login. Here is a little context:
Our forum is connected to WordPress via the WP Discourse forum. When you try to go to the forum before logging in, it redirects you to the WordPress login page (which is correct). After you login though, it redirects you to the WordPress homepage vs. the page I have set in the ‘Redirect After Discourse Login’ (see here: Screen Shot 2017-05-17 at 7.20.59 AM.png).
Arpit referenced this code (wp-discourse/discourse-sso.php at 58546613b97497e9698b1a7110bdbb6f76baa2b8 · discourse/wp-discourse · GitHub) and said:
It seems like home_url(’/dashboard’) is not getting parsed correctly. This might be a bug in wp-discourse plugin, not sure though.
@Simon_Cossar, he said you might be able to take a look.
Ideally I’d have the user redirect back to the forum homepage after coming to the login page from that URL, but it doesn’t appear the ‘Redirect After Discourse Login’ allows external links. If that is not possible, I’d like to at least redirect the user to the WordPress page I set in the ‘Redirect After Discourse Login’ field.