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: dub branding on paid plans

jackblatch36f96b795f5d
diff --git a/apps/web/app/protected/[domain]/[key]/page.tsx b/apps/web/app/protected/[domain]/[key]/page.tsx
index fd54450c2e..76cfc4c746 100644
--- a/apps/web/app/protected/[domain]/[key]/page.tsx
+++ b/apps/web/app/protected/[domain]/[key]/page.tsx
@@ -4,7 +4,7 @@ import prisma from "@/lib/prisma";
import PasswordForm from "./form";
import { notFound, redirect } from "next/navigation";
-const title = "Password Required – Dub.co";
+const title = "Password Required";
const description =
"This link is password protected. Please enter the password to view it.";
const image = "https://dub.co/_static/password-protected.png";
@@ -39,7 +39,7 @@ export async function generateMetadata({
}
return constructMetadata({
- title,
+ title: link.project?.plan === "free" ? `${title} - Dub.co` : title,
description,
image,
...(!isDubDomain(domain) &&
@@ -126,7 +126,9 @@ export default async function PasswordProtectedLinkPage({
<Logo />
</a>
)}
- <h3 className="text-xl font-semibold">{title}</h3>
+ <h3 className="text-xl font-semibold">
+ {link.project?.plan === "free" ? `${title} - Dub.co` : title}
+ </h3>
<p className="text-sm text-gray-500">{description}</p>
</div>
<PasswordForm />