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.

added OG image alt text

Steven Teyf8c626a555d5
diff --git a/pages/_proxy/[domain]/[key].tsx b/pages/_proxy/[domain]/[key].tsx
index 6b5a838900..290bf6771b 100644
--- a/pages/_proxy/[domain]/[key].tsx
+++ b/pages/_proxy/[domain]/[key].tsx
@@ -5,6 +5,7 @@ import prisma from "@/lib/prisma";
import { getApexDomain } from "@/lib/utils";
export default function LinkPage({
+ shortLink,
fullDomain,
apexDomain,
title,
@@ -18,6 +19,10 @@ export default function LinkPage({
<meta property="og:site_name" content={unescape(fullDomain)} />
<meta property="og:description" content={unescape(description)} />
<meta property="og:image" content={unescape(image)} />
+ <meta
+ property="og:image:alt"
+ content={`OG image for ${title} (${shortLink})`}
+ />
<meta name="twitter:card" content="summary_large_image" />
<meta name="twitter:site" content={unescape(fullDomain)} />
<meta name="twitter:title" content={unescape(title)} />
@@ -91,6 +96,7 @@ export async function getServerSideProps(ctx) {
return {
props: {
+ shortLink: `${domain}/${key}`,
fullDomain,
apexDomain,
title,