Skip to main content

stripe-external-redirect-navigation

Fix back button navigating to Stripe checkout after payment completion. Use when: (1) User completes Stripe payment and clicks back button, but returns to Stripe instead of the app, (2) document.referrer check for external sites doesn't work with Stripe, (3) router.back() goes to payment provider instead of previous app page. Covers Next.js, React Router, and any SPA with external payment redirects. Solution uses sessionStorage to track external returns reliably.

Jump to install

Source facts

Repository
hubeiqiao/skills
Last source activity
March 4, 2026 at 17:08
Detected SKILL.md language
English
Stars
0
Forks
0

Install options

The review-first prompt is selected by default. You can switch to a direct command or download a local copy.

Review the source files

Read SKILL.md and any companion files shown by SkillsMP before deciding whether to install.