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.

fixed link stats broken error

Steven Tey530935a25c4d
diff --git a/components/app/links/link-card.tsx b/components/app/links/link-card.tsx
index f53693e003..248cf43b84 100644
--- a/components/app/links/link-card.tsx
+++ b/components/app/links/link-card.tsx
@@ -112,7 +112,7 @@ export default function LinkCard({ props }: { props: LinkProps }) {
<span className="sr-only">Download QR</span>
<QR className="text-gray-700 transition-all group-hover:text-blue-800" />
</button>
- <Link href={`/${slug}/${encodeURI(key)}`}>
+ <Link href={`/${slug || "links"}/${encodeURI(key)}`}>
<a className="flex items-center space-x-1 rounded-md bg-gray-100 px-2 py-0.5 transition-all duration-75 hover:scale-105 active:scale-95">
<Chart className="h-4 w-4" />
<p className="whitespace-nowrap text-sm text-gray-500">