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 relative URL for link card previews

Steven Teyed4b0f516cea
diff --git a/components/app/links/link-card.tsx b/components/app/links/link-card.tsx
index fec27f8cf2..9d975eab93 100644
--- a/components/app/links/link-card.tsx
+++ b/components/app/links/link-card.tsx
@@ -148,7 +148,7 @@ export default function LinkCard({ props }: { props: LinkProps }) {
</Link>
{title && description && image && (
<a
- href={`https://dub.sh/_proxy/${
+ href={`https://${domain || "dub.sh"}/_proxy/${
domain || "dub.sh"
}/${encodeURI(key)}`}
target="_blank"