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 partners landing page

Steven Teyb997eb5ae181
diff --git a/apps/web/app/(ee)/partners.dub.co/(apply)/[programSlug]/apply/page.tsx b/apps/web/app/(ee)/partners.dub.co/(apply)/[programSlug]/apply/page.tsx
index 022ca1a436..2ee6092ed5 100644
--- a/apps/web/app/(ee)/partners.dub.co/(apply)/[programSlug]/apply/page.tsx
+++ b/apps/web/app/(ee)/partners.dub.co/(apply)/[programSlug]/apply/page.tsx
@@ -2,7 +2,6 @@ import { getProgram } from "@/lib/fetchers/get-program";
import { DEFAULT_PARTNER_GROUP } from "@/lib/zod/schemas/groups";
import { LanderRewards } from "@/ui/partners/lander/lander-rewards";
import { ProgramApplicationForm } from "@/ui/partners/lander/program-application-form";
-import { capitalize } from "@dub/utils";
import { notFound } from "next/navigation";
import { CSSProperties } from "react";
import { Header } from "../header";
@@ -41,10 +40,7 @@ export default async function ApplicationPage({
<p className="font-mono text-xs font-medium uppercase text-[var(--brand)]">
{program.name} Affiliate Program
</p>
- <h1 className="text-4xl font-semibold">
- Apply to {program.name}{" "}
- {!isDefaultGroup ? `(${capitalize(partnerGroupSlug)})` : ""}
- </h1>
+ <h1 className="text-4xl font-semibold">Apply to {program.name}</h1>
<p className="text-base text-neutral-700">
Submit your application to join the {program.name} affiliate program
and start earning commissions for your referrals.
diff --git a/apps/web/app/(ee)/partners.dub.co/(apply)/[programSlug]/layout.tsx b/apps/web/app/(ee)/partners.dub.co/(apply)/[programSlug]/layout.tsx
index 11a0d9be2a..aed938d191 100644
--- a/apps/web/app/(ee)/partners.dub.co/(apply)/[programSlug]/layout.tsx
+++ b/apps/web/app/(ee)/partners.dub.co/(apply)/[programSlug]/layout.tsx
@@ -3,7 +3,7 @@ import { DEFAULT_PARTNER_GROUP } from "@/lib/zod/schemas/groups";
import { formatRewardDescription } from "@/ui/partners/format-reward-description";
import { prisma } from "@dub/prisma";
import { Wordmark } from "@dub/ui";
-import { APP_DOMAIN } from "@dub/utils";
+import { APP_DOMAIN, PARTNERS_DOMAIN } from "@dub/utils";
import { constructMetadata } from "@dub/utils/src/functions";
import Link from "next/link";
import { notFound } from "next/navigation";
@@ -33,6 +33,7 @@ export async function generateMetadata({
: "earn commissions"
} by referring ${program.name} to your friends and followers.`,
image: `${APP_DOMAIN}/api/og/program?slug=${program.slug}`,
+ canonicalUrl: `${PARTNERS_DOMAIN}/${program.slug}`,
});
}