Skip to content
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

Launchpad: Site cannot access /home because of redirect loop #88386

Closed
sixhours opened this issue Mar 11, 2024 · 5 comments
Closed

Launchpad: Site cannot access /home because of redirect loop #88386

sixhours opened this issue Mar 11, 2024 · 5 comments
Assignees
Labels
Customer Report Issues or PRs that were reported via Happiness. Previously known as "Happiness Request". [Feature] Launchpad The onboarding Launchpad that guides users through setting up their site and getting it launched. [Type] Bug When a feature is broken and / or not performing as intended

Comments

@sixhours
Copy link
Contributor

sixhours commented Mar 11, 2024

Site in question along with a description of the behavior is here: p1710175764454889-slack-C0Q664T29

Unlaunched Atomic site cannot access /home because of a chain of redirects that ends in a loop:

  1. User goes to /sites
  2. User clicks on their site to go to /home
  3. /home redirects to /site-setup/goals?siteSlug=...
  4. Clicking "Skip to dashboard" on /site-setup/goals?siteSlug=... redirects to /home
  5. ...which then redirects back to /site-setup/goals?siteSlug=...

This site is also on an Entrepreneur plan, so /home should redirect to WC admin.

Seemed like it might be related to #88384 but clearing the site_intent did not fix it.

ZD: 7787925-zd-a8c

@sixhours sixhours added [Type] Bug When a feature is broken and / or not performing as intended [Feature] Launchpad The onboarding Launchpad that guides users through setting up their site and getting it launched. labels Mar 11, 2024
@sixhours sixhours changed the title Launchpad: Atomic site cannot access /sites because it redirects to /home, which redirects to /site-setup/goals?siteSlug=... Launchpad: Site cannot access /sites because of redirect loop Mar 11, 2024
Copy link

Support References

This comment is automatically generated. Please do not edit it.

  • 7787925-zen

@github-actions github-actions bot added the Customer Report Issues or PRs that were reported via Happiness. Previously known as "Happiness Request". label Mar 11, 2024
@sixhours sixhours changed the title Launchpad: Site cannot access /sites because of redirect loop Launchpad: Site cannot access /home because of redirect loop Mar 11, 2024
@sixhours
Copy link
Contributor Author

sixhours commented Mar 11, 2024

The redirect happens here: https://github.com/Automattic/wp-calypso/blob/trunk/client/my-sites/customer-home/controller.jsx#L73

Oddly, if I look at the site settings in network admin, the launchpad_screen option is skipped, but if I log it on the front end or check the site's API, it's full. So that's why the redirect is happening, but I don't know where the mismatch comes from yet.

@sixhours
Copy link
Contributor Author

Well, I've fixed this manually by updating the site option via CLI on the user's site:

wp option update launchpad_screen 'skipped'

The bug to fix here is figuring out what steps were taken to get the site into this state so it doesn't happen again. :)

@arthur791004
Copy link
Contributor

The mismatch happens as we don't sync the launchpad_screen to the atomic site correctly. See D141422-code.

@retnonindya retnonindya moved this from Needs Triage to Triaged in Automattic Prioritization: The One Board ™ Mar 13, 2024
@sixhours sixhours self-assigned this Jul 22, 2024
@sixhours
Copy link
Contributor Author

I tried to get a new site into this situation in a couple ways:

  • Straightforward -- signed up and purchased an Entrepreneur plan. No Launchpad was shown, so no need to worry about the option.
  • Roundabout -- signed up on a Free plan, skipped the Launchpad step, then upgraded to Entrepreneur. Everything worked as expected.

So I don't think this is a common bug or one that can easily be reproduced. From the diff intended to solve this issue:

Everything seems to work well without this change. So, let's close it for now. We can make changes again when there is any issue related to this one 🙂

I'll close this as a result.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Customer Report Issues or PRs that were reported via Happiness. Previously known as "Happiness Request". [Feature] Launchpad The onboarding Launchpad that guides users through setting up their site and getting it launched. [Type] Bug When a feature is broken and / or not performing as intended
Development

No branches or pull requests

2 participants