jetpack icon indicating copy to clipboard operation
jetpack copied to clipboard

Jetpack AI: user is not redirected back to post after upgrade

Open lhkowalski opened this issue 1 year ago • 1 comments

The behavior created by https://github.com/Automattic/jetpack/pull/35263 is not working anymore.

Steps to reproduce:

  • go to the block editor, add some content and save the draft
  • go to the Jetpack sidebar, look for the AI Assistant section and click the upgrade button
  • follow the upgrade process
  • after buying it, notice the page you get redirected to

Expected behavior:

  • user is redirected back to the editor, with the correct post loaded

Current behavior:

  • user is redirected back to My Jetpack page

Some details about the redirect implementation:

  • to implement the redirect, PR #35263 created a parameter called redirect_to_referrer that, when present, would indicate to My Jetpack that the redirect_to URL provided on the checkout flow should be the referrer URL (for out case, the URL to edit the post the user was editing)
  • it's possible that the behavior of looking to redirect_to_referrer and deciding which redirect URL to include got lost on recent changes

lhkowalski avatar Apr 16 '24 15:04 lhkowalski

This issue has been marked as stale. This happened because:

  • It has been inactive for the past 6 months.
  • It hasn’t been labeled `[Pri] BLOCKER`, `[Pri] High`, `[Type] Feature Request`, `[Type] Enhancement`, `[Type] Janitorial`, `Good For Community`, `[Type] Good First Bug`, etc.

No further action is needed. But it's worth checking if this ticket has clear reproduction steps and it is still reproducible. Feel free to close this issue if you think it's not valid anymore — if you do, please add a brief explanation.

github-actions[bot] avatar Oct 22 '24 00:10 github-actions[bot]