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 skip_deeplink_preview

Steven Teyd439f4cfebac
diff --git a/apps/web/app/app.dub.co/(deeplink)/deeplink/[domain]/[key]/action-buttons.tsx b/apps/web/app/app.dub.co/(deeplink)/deeplink/[domain]/[key]/action-buttons.tsx
index 5a53c47e27..2cfdf18070 100644
--- a/apps/web/app/app.dub.co/(deeplink)/deeplink/[domain]/[key]/action-buttons.tsx
+++ b/apps/web/app/app.dub.co/(deeplink)/deeplink/[domain]/[key]/action-buttons.tsx
@@ -15,7 +15,7 @@ export function DeepLinkActionButtons({
await copyToClipboard(link.shortLink);
}
- window.location.href = `${link.shortLink}?skip_deeplink_preview=1`;
+ window.location.href = link.shortLink;
};
return (
diff --git a/apps/web/app/app.dub.co/(deeplink)/deeplink/[domain]/[key]/brand-logo-badge.tsx b/apps/web/app/app.dub.co/(deeplink)/deeplink/[domain]/[key]/brand-logo-badge.tsx
index c9d0993e2a..bc825536e8 100644
--- a/apps/web/app/app.dub.co/(deeplink)/deeplink/[domain]/[key]/brand-logo-badge.tsx
+++ b/apps/web/app/app.dub.co/(deeplink)/deeplink/[domain]/[key]/brand-logo-badge.tsx
@@ -15,7 +15,7 @@ export function BrandLogoBadge({
<button
onClick={async () => {
await copyToClipboard(link.shortLink);
- window.location.href = `${link.shortLink}?skip_deeplink_preview=1`;
+ window.location.href = link.shortLink;
}}
className="inline-flex items-center gap-2 rounded-full bg-white px-3 py-1.5 shadow-lg shadow-black/10 ring-1 ring-neutral-200"
>
diff --git a/apps/web/lib/middleware/link.ts b/apps/web/lib/middleware/link.ts
index d48ca2b020..f8ed5203db 100644
--- a/apps/web/lib/middleware/link.ts
+++ b/apps/web/lib/middleware/link.ts
@@ -411,12 +411,8 @@ export default async function LinkMiddleware(
}),
);
- // if it's an iOS app store URL (and skip_deeplink_preview is not set)
- // we need to show the interstitial page + cache deep link click data
- if (
- isIosAppStoreUrl(ios) &&
- !req.nextUrl.searchParams.get("skip_deeplink_preview")
- ) {
+ // if it's an iOS app store URL, we need to show the interstitial page + cache deep link click data
+ if (isIosAppStoreUrl(ios)) {
ev.waitUntil(
cacheDeepLinkClickData({
req,