We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 16e39f4 commit ee4dc4bCopy full SHA for ee4dc4b
apps/sim/lib/billing/client/upgrade.ts
@@ -81,7 +81,9 @@ export function useSubscriptionUpgrade() {
81
}
82
83
const currentUrl = `${window.location.origin}${window.location.pathname}`
84
- const successUrl = `${currentUrl}?upgraded=true`
+ const successUrlObj = new URL(window.location.href)
85
+ successUrlObj.searchParams.set('upgraded', 'true')
86
+ const successUrl = successUrlObj.toString()
87
88
try {
89
const upgradeParams = {
0 commit comments