docs(stripe): Fix anchor link for integration options#306
docs(stripe): Fix anchor link for integration options#306janpio wants to merge 1 commit intodubinc:mainfrom
Conversation
📝 WalkthroughWalkthroughDocumentation content in the Stripe integration guide was reorganized by reordering bullet points under the "Tracking sales" section. Two options were repositioned without any textual or structural modifications. Changes
Estimated code review effort🎯 1 (Trivial) | ⏱️ ~3 minutes Poem
🚥 Pre-merge checks | ✅ 3✅ Passed checks (3 passed)
✏️ Tip: You can configure your own custom pre-merge checks in the settings. ✨ Finishing Touches🧪 Generate unit tests (beta)
📝 Coding Plan
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment Tip You can disable the changed files summary in the walkthrough.Disable the |
There was a problem hiding this comment.
Actionable comments posted: 1
🤖 Prompt for all review comments with AI agents
Verify each finding against the current code and only fix it if needed.
Inline comments:
In `@docs/integrations/stripe.mdx`:
- Around line 122-123: Replace the URL-encoded anchor links
"#option-2%3A-using-stripe-checkout-recommended" with the standard slug
"#option-2-using-stripe-checkout-recommended" in the stripe.mdx content so all
references (the two remaining encoded occurrences) match the already-correct
anchor format; search for the exact encoded anchor string and update both
instances to the hyphenated slug.
ℹ️ Review info
⚙️ Run configuration
Configuration used: defaults
Review profile: CHILL
Plan: Pro
Run ID: badd54b4-74a6-4b7d-8d7b-85cc7919d296
📒 Files selected for processing (1)
docs/integrations/stripe.mdx
| - [Option 2: Using Stripe Checkout (recommended)](#option-2-using-stripe-checkout-recommended) | ||
| - [Option 3: Using Stripe Customers](#option-3-using-stripe-customers) |
There was a problem hiding this comment.
Anchor links look correct, but similar links elsewhere still use URL encoding.
The fix correctly uses the standard slug format (#option-2-using-stripe-checkout-recommended) that markdown processors typically generate from headings.
However, there are two other anchor links in this file that still use the URL-encoded %3A format:
- Line 206:
#option-2%3A-using-stripe-checkout-recommended - Line 359:
#option-2%3A-using-stripe-checkout-recommended
These should be updated for consistency.
Suggested fixes for consistency
Line 206:
-If you're using Stripe's [Checkout Sessions API](https://docs.stripe.com/api/checkout/sessions/object) for a recurring subscription service, you might want to check out our [Stripe Checkout option](`#option-2`%3A-using-stripe-checkout-recommended) instead.
+If you're using Stripe's [Checkout Sessions API](https://docs.stripe.com/api/checkout/sessions/object) for a recurring subscription service, you might want to check out our [Stripe Checkout option](`#option-2-using-stripe-checkout-recommended`) instead.Line 359:
-Alternatively, if you don't use Stripe's [checkout session creation flow](`#option-2`%3A-using-stripe-checkout-recommended), you can also pass the user ID and the click event ID (`dub_id`) in the [Stripe customer creation flow](https://docs.stripe.com/api/customers/create).
+Alternatively, if you don't use Stripe's [checkout session creation flow](`#option-2-using-stripe-checkout-recommended`), you can also pass the user ID and the click event ID (`dub_id`) in the [Stripe customer creation flow](https://docs.stripe.com/api/customers/create).🤖 Prompt for AI Agents
Verify each finding against the current code and only fix it if needed.
In `@docs/integrations/stripe.mdx` around lines 122 - 123, Replace the URL-encoded
anchor links "#option-2%3A-using-stripe-checkout-recommended" with the standard
slug "#option-2-using-stripe-checkout-recommended" in the stripe.mdx content so
all references (the two remaining encoded occurrences) match the already-correct
anchor format; search for the exact encoded anchor string and update both
instances to the hyphenated slug.
This pull request makes a minor correction to the Stripe integration documentation. It updates the anchor links for "Option 2" and "Option 3" in the sales tracking section to use the correct URL encoding, ensuring that the links work as intended.
Summary by CodeRabbit