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.

Update link.ts

Steven Tey5a8ee59f267f
diff --git a/apps/web/lib/middleware/link.ts b/apps/web/lib/middleware/link.ts
index 9db9aca95a..ff51ed1955 100644
--- a/apps/web/lib/middleware/link.ts
+++ b/apps/web/lib/middleware/link.ts
@@ -191,7 +191,7 @@ export default async function LinkMiddleware(
req,
linkId,
clickId,
- url,
+ ...(url && { url: getFinalUrl(url, { req }) }),
}),
);
}