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.

fix: added qr param in qr code

01vishu7eefdde3e989
diff --git a/apps/web/lib/api/links/utils/transform-link.ts b/apps/web/lib/api/links/utils/transform-link.ts
index 516cb71670..950d5819d6 100644
--- a/apps/web/lib/api/links/utils/transform-link.ts
+++ b/apps/web/lib/api/links/utils/transform-link.ts
@@ -12,7 +12,7 @@ export const transformLink = (link: LinkWithTags) => {
...link,
tagId: tags?.[0]?.id ?? null, // backwards compatibility
tags,
- qrCode: `https://api.dub.co/qr?url=${link.shortLink}`,
+ qrCode: `https://api.dub.co/qr?url=${link.shortLink}?qr=1`,
workspaceId: link.projectId ? `ws_${link.projectId}` : null,
};
};