Skip to content

Add /claim-offer redirect page#954

Merged
AvdLee merged 2 commits intomasterfrom
docs/claim-offer-route
Mar 18, 2026
Merged

Add /claim-offer redirect page#954
AvdLee merged 2 commits intomasterfrom
docs/claim-offer-route

Conversation

@AvdLee
Copy link
Owner

@AvdLee AvdLee commented Mar 18, 2026

Summary

  • add a new /claim-offer Astro page that forwards the full incoming query string into rocketsim://open-offer
  • automatically attempt the RocketSim deep link on load and fall back to the homepage after 2 seconds
  • exclude the utility route from the sitemap so it stays out of search indexing

We added this page because the welcome email previously used a rocketsim:// deep link directly, and custom URL schemes are more likely to get flagged by email clients such as Outlook. Switching the email to an HTTPS https://www.rocketsim.app/claim-offer URL preserves the same in-app offer flow while improving deliverability and still falling back gracefully when RocketSim is not installed.

Test plan

  • cd docs && npm run build
  • Open http://127.0.0.1:4322/claim-offer?discount=30&code=SWIFTLEEWEEKLY&source=website_welcome_email&email=test%40example.com
  • Verify RocketSim opens locally and the page falls back to the homepage when needed

Replace the welcome email deep link with an HTTPS landing page that forwards all query parameters into RocketSim and falls back to the homepage when the app is not installed.
@AvdLee AvdLee requested a review from ngnijland March 18, 2026 10:01
Align the new redirect page with the docs Prettier rules so the quality check passes in CI.
@AvdLee AvdLee merged commit 665b0fa into master Mar 18, 2026
1 check passed
@AvdLee AvdLee deleted the docs/claim-offer-route branch March 18, 2026 10:04
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant