#wobedi

1 messages · Page 1 of 1 (latest)

prisma ospreyBOT
somber lake
#

Hi there

#

Hmm, what happens when you click the back button in the browser?

sharp hare
#

Hi! Thanks a ton for the quick reply

#

In the example of our app, this is what happens:

somber lake
#

Ah right

#

I see

#

You just go back to wherever you redirected them from

sharp hare
#

exactly

somber lake
#

I actually see a feature request internally already for this. I'll tack your note on here to let the team know there is more interest. Hopefully it will get prioritized in the future!

sharp hare
#

thanks!

#

that's great to hear

somber lake
#

Thanks for the feedback!

sharp hare
#

Some further context on how we use this, if it helps:

  • Let's say our app's URL is example.com/app
  • User clicks on checkout button within our app (on example.com/app)
  • We create a checkout session and pass cancel_url: example.com/app?abandoned-checkout=true as a Stripe API parameter
  1. IF user now clicks on UI button within Stripe Checkout, they will get forwarded back to example.com/app?abandoned-checkout=true

  2. BUT, IF user uses their browser's back button (much more common) they will instead get forwarded back to example.com/app --> We won't know that they just abandonned checkout

somber lake
#

Yep makes total sense

sharp hare
#

Basically we want to display special UI for users who just abandonned checkout, and if the user uses their back button then we currently can't do that