WP Discourse 1.5 Release

If you add a link with this structure directly to a page on your site other than the login page, does it work? It should log you in and redirect you to your homepage.

<a href="http://snapcentral.netsapiens.com/?discourse_sso=1&redirect_to=http://snapcentral.netsapiens.com" rel="nofollow noopener">Login – netsapiens SNAPcentral</a>

What happens if you add this shortcode to a page other than the login page? The link will only be visible when you are logged out.

[discourse_sso_client]

2 Likes

The first part works on a page other than the login page

The second part I am not sure how to accomplish since I cannot get to any pages if I am logged out and I can only login from /login?

Excuse me if I am not understanding you correctly!

Right, your website is private. What happens if you logout of your website and embed the link I posted into a Discourse post? It should log you in to WordPress and take you to your homepage.

1 Like

That worked! Which gives me a great idea to add the link to our forum so customers can get to the other site from there!

Great! It’s a solvable problem. Could you try embedding this link on your forum and see if it still works? It will help me debug something.

<a href="http://snapcentral.netsapiens.com/?discourse_sso=1&redirect_to=http%3A%2F%2Fsnapcentral.netsapiens.com" rel="nofollow noopener">Login – netsapiens SNAPcentral</a>

I believe the answer is NO since that link just took me to the login page for my site NOT the homepage once logged in.

1 Like