Skip to content

armgit / dub

Public Imported from GitHub
0

The modern link attribution platform. Loved by world-class engineering teams at Twilio, Zillow, Jobber, Vercel, Raycast, and more.

remove exit=close

Steven Teyf7420509ac37
diff --git a/apps/web/ui/domains/register-domain-form.tsx b/apps/web/ui/domains/register-domain-form.tsx
index 70e281b6a0..f5f06935ef 100644
--- a/apps/web/ui/domains/register-domain-form.tsx
+++ b/apps/web/ui/domains/register-domain-form.tsx
@@ -367,7 +367,7 @@ function UpgradeTooltipContent() {
</>
}
cta="Upgrade to Pro"
- onClick={() => window.open(`/${slug}/upgrade?exit=close`)}
+ onClick={() => window.open(`/${slug}/upgrade`)}
/>
);
}
diff --git a/apps/web/ui/folders/add-folder-form.tsx b/apps/web/ui/folders/add-folder-form.tsx
index 05b9305113..3e0ceea17e 100644
--- a/apps/web/ui/folders/add-folder-form.tsx
+++ b/apps/web/ui/folders/add-folder-form.tsx
@@ -144,7 +144,7 @@ export const AddFolderForm = ({ onSuccess, onCancel }: AddFolderFormProps) => {
<TooltipContent
title="You can only set custom folder permissions on a Business plan and above."
cta="Upgrade to Business"
- href={`/${workspace.slug}/upgrade?exit=close`}
+ href={`/${workspace.slug}/upgrade`}
target="_blank"
/>
}
diff --git a/apps/web/ui/folders/folder-permissions-panel.tsx b/apps/web/ui/folders/folder-permissions-panel.tsx
index 59b2af7df0..7131886470 100644
--- a/apps/web/ui/folders/folder-permissions-panel.tsx
+++ b/apps/web/ui/folders/folder-permissions-panel.tsx
@@ -211,7 +211,7 @@ const FolderPermissionsPanel = ({
<TooltipContent
title="You can only set custom folder permissions on a Business plan and above."
cta="Upgrade to Business"
- href={`/${slug}/upgrade?exit=close`}
+ href={`/${slug}/upgrade`}
target="_blank"
/>
}
diff --git a/apps/web/ui/links/links-toolbar.tsx b/apps/web/ui/links/links-toolbar.tsx
index 0b0e5eb0b5..d72b98c077 100644
--- a/apps/web/ui/links/links-toolbar.tsx
+++ b/apps/web/ui/links/links-toolbar.tsx
@@ -143,9 +143,7 @@ export const LinksToolbar = memo(
<TooltipContent
title="Conversion tracking is only available on Business plans and above."
cta="Upgrade to Business"
- href={
- slug ? `/${slug}/upgrade?exit=close` : "https://dub.co/pricing"
- }
+ href={slug ? `/${slug}/upgrade` : "https://dub.co/pricing"}
target="_blank"
/>
),
diff --git a/apps/web/ui/links/short-link-input.tsx b/apps/web/ui/links/short-link-input.tsx
index da3747903b..2b11ad6238 100644
--- a/apps/web/ui/links/short-link-input.tsx
+++ b/apps/web/ui/links/short-link-input.tsx
@@ -366,7 +366,7 @@ export const ShortLinkInput = forwardRef<HTMLInputElement, ShortLinkInputProps>(
{error.split(`Upgrade to ${nextPlan.name}`)[0]}
<a
className="cursor-pointer underline"
- href={`/${slug}/upgrade?exit=close`}
+ href={`/${slug}/upgrade`}
target="_blank"
>
Upgrade to {nextPlan.name}
diff --git a/apps/web/ui/modals/link-builder/conversion-tracking-toggle.tsx b/apps/web/ui/modals/link-builder/conversion-tracking-toggle.tsx
index 5c2d3a592d..7b246cf0f7 100644
--- a/apps/web/ui/modals/link-builder/conversion-tracking-toggle.tsx
+++ b/apps/web/ui/modals/link-builder/conversion-tracking-toggle.tsx
@@ -61,9 +61,7 @@ export function ConversionTrackingToggle() {
<TooltipContent
title="Conversion tracking is only available on Business plans and above."
cta="Upgrade to Business"
- href={
- slug ? `/${slug}/upgrade?exit=close` : "https://dub.co/pricing"
- }
+ href={slug ? `/${slug}/upgrade` : "https://dub.co/pricing"}
target="_blank"
/>
)
diff --git a/apps/web/ui/modals/link-builder/link-preview.tsx b/apps/web/ui/modals/link-builder/link-preview.tsx
index fce3373e4b..a627fbcd68 100644
--- a/apps/web/ui/modals/link-builder/link-preview.tsx
+++ b/apps/web/ui/modals/link-builder/link-preview.tsx
@@ -124,11 +124,7 @@ export function LinkPreview() {
<TooltipContent
title="Custom Link Previews are only available on the Pro plan and above."
cta="Upgrade to Pro"
- href={
- slug
- ? `/${slug}/upgrade?exit=close`
- : "https://dub.co/pricing"
- }
+ href={slug ? `/${slug}/upgrade` : "https://dub.co/pricing"}
target="_blank"
/>
) : undefined
diff --git a/apps/web/ui/modals/link-qr-modal.tsx b/apps/web/ui/modals/link-qr-modal.tsx
index 565a762730..b73a5fe162 100644
--- a/apps/web/ui/modals/link-qr-modal.tsx
+++ b/apps/web/ui/modals/link-qr-modal.tsx
@@ -281,11 +281,7 @@ function LinkQRModalInner({
<TooltipContent
title="You need to be on the Pro plan and above to customize your QR Code logo."
cta="Upgrade to Pro"
- href={
- slug
- ? `/${slug}/upgrade?exit=close`
- : "https://dub.co/pricing"
- }
+ href={slug ? `/${slug}/upgrade` : "https://dub.co/pricing"}
target="_blank"
/>
) : undefined
diff --git a/apps/web/ui/shared/upgrade-required-toast.tsx b/apps/web/ui/shared/upgrade-required-toast.tsx
index ae5dc0f838..73807c6041 100644
--- a/apps/web/ui/shared/upgrade-required-toast.tsx
+++ b/apps/web/ui/shared/upgrade-required-toast.tsx
@@ -21,7 +21,7 @@ export const UpgradeRequiredToast = ({
</div>
<p className="text-sm text-neutral-600">{message}</p>
<Link
- href={slug ? `/${slug}/upgrade?exit=close` : "https://dub.co/pricing"}
+ href={slug ? `/${slug}/upgrade` : "https://dub.co/pricing"}
target="_blank"
className="w-full rounded-md border border-black bg-black px-3 py-1.5 text-center text-sm text-white transition-all hover:bg-neutral-800 hover:ring-4 hover:ring-neutral-200"
>
diff --git a/apps/web/ui/workspaces/workspace-exceeded-clicks.tsx b/apps/web/ui/workspaces/workspace-exceeded-clicks.tsx
index a3c47eaf0a..df064b5293 100644
--- a/apps/web/ui/workspaces/workspace-exceeded-clicks.tsx
+++ b/apps/web/ui/workspaces/workspace-exceeded-clicks.tsx
@@ -25,7 +25,7 @@ export default function WorkspaceExceededClicks() {
nextPlan ? `Upgrade to ${nextPlan.name}` : "Contact support"
}
learnMoreHref={
- nextPlan ? `/${slug}/upgrade?exit=close` : "https://dub.co/contact"
+ nextPlan ? `/${slug}/upgrade` : "https://dub.co/contact"
}
/>
</div>