The modern link attribution platform. Loved by world-class engineering teams at Twilio, Zillow, Jobber, Vercel, Raycast, and more.
TypeScript clickhousemysqlnextjsopen-sourceplanetscaleprismatailwindcsstinybirdtypescriptupstashvercel
small fix
Kiran K4b7862819d49
diff --git a/apps/web/lib/middleware/link.ts b/apps/web/lib/middleware/link.tsindex a601d5545e..ff9712882f 100644--- a/apps/web/lib/middleware/link.ts+++ b/apps/web/lib/middleware/link.ts@@ -191,6 +191,15 @@ export default async function LinkMiddleware();}+ if (!url) {+ // rewrite to placeholder page unless the user defines a site to redirect to+ return NextResponse.rewrite(new URL(`/${domain}`, req.url), {+ headers: {+ ...DUB_HEADERS,+ },+ });+ }+const isBot = detectBot(req);const { country } =