Automattic / Automattic/jetpack

SSO: ensure that 'return to your site' link goes to correct page

Open
#4,200 6 comments 0 reactions 1 assignee Claimed by @ebinnion View on GitHub
[Feature] SSO [Pri] Low Bug
Dominant language
PHP
Stars
1.8k
Forks
898
Avg merge
1d 18h
Merged PRs (30d)
774

Description

#### Steps to reproduce the issue
1. Connect with Jetpack, turn on SSO, and add the `jetpack_sso_bypass_login_forward_wpcom` filter using:

``` php
add_filter( 'jetpack_sso_bypass_login_forward_wpcom', '__return_true' );
```
1. Make sure you are are logged in to WordPress.com with any account
2. Go to the login page for your site at yoursite.com/wp-admin
3. Click on the 'Return to Your Site' link at the bottom of the sign in screen
4. See that you are redirected back to yoursite.com/wp-admin instead of yoursite.com
It looks like nothing is happening because it's the same page as before.
#### What I expected

I expected to be redirected back to yoursite.com

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.