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.

Update page.tsx

Steven Teycfb2431a57db
diff --git a/apps/web/app/protected/[domain]/[key]/page.tsx b/apps/web/app/protected/[domain]/[key]/page.tsx
index 76cfc4c746..16d8ff25d7 100644
--- a/apps/web/app/protected/[domain]/[key]/page.tsx
+++ b/apps/web/app/protected/[domain]/[key]/page.tsx
@@ -39,7 +39,7 @@ export async function generateMetadata({
}
return constructMetadata({
- title: link.project?.plan === "free" ? `${title} - Dub.co` : title,
+ title: isDubDomain(domain) || link.project?.plan === "free" ? `${title} - Dub.co` : title,
description,
image,
...(!isDubDomain(domain) &&
@@ -127,7 +127,7 @@ export default async function PasswordProtectedLinkPage({
</a>
)}
<h3 className="text-xl font-semibold">
- {link.project?.plan === "free" ? `${title} - Dub.co` : title}
+ {isDubDomain(domain) || link.project?.plan === "free" ? `${title} - Dub.co` : title}
</h3>
<p className="text-sm text-gray-500">{description}</p>
</div>