-
Notifications
You must be signed in to change notification settings - Fork 2k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Fix back redirection from Woo connect switch user flow #90836
Conversation
Jetpack Cloud live (direct link)
Automattic for Agencies live (direct link)
|
Here is how your PR affects size of JS and CSS bundles shipped to the user's browser: App Entrypoints (~138 bytes added 📈 [gzipped])
Common code that is always downloaded and parsed every time the app is loaded, no matter which route is used. Legend What is parsed and gzip size?Parsed Size: Uncompressed size of the JS and CSS files. This much code needs to be parsed and stored in memory. Generated by performance advisor bot at iscalypsofastyet.com. |
01d2dcf
to
e0e48c7
Compare
This PR modifies the release build for the following Calypso Apps: For info about this notification, see here: PCYsg-OT6-p2
To test WordPress.com changes, run |
@vishnugopal when clicking the back button I'm getting redirected to the store but on logged out state. I think this is because I'm getting redirected to wp-login.php. e.g: This is not ideal as it logout the user from the store. wp-test.mov |
@thilinah Could you re-review? This was an extra |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks for fixing the issue. Tested and works fine.
Related to 20362-gh-Automattic/woocommerce.com
Proposed Changes
Fixes back button redirection from Woo connection switch user flow.
Why are these changes being made?
When redirecting from the Woo connection switch user flow, back button navigation calls
history.back()
which takes you back to the connection flow. At the connection flow however, because a user is not available, the page redirects back to the login flow. You can see this on production here (ensure you are logged into woocommerce.com):CleanShot.2024-05-17.at.11.09.22.mp4
Testing Instructions
yarn start
./wp-admin/admin.php?page=wc-admin&tab=my-subscriptions&path=%2Fextensions
and clickingConnect account
.Use a different WooCommerce.com account
https://wordpress.com/log-in?
withhttp://calypso.localhost:3000/log-in?
CleanShot.2024-05-17.at.11.19.49.mp4
Pre-merge Checklist