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.

Send the All programs links through the partner landing rule

Rafi75753df73397
diff --git a/apps/web/ui/layout/sidebar/partner-program-dropdown.tsx b/apps/web/ui/layout/sidebar/partner-program-dropdown.tsx
index f800c8dd32..4c99d07502 100644
--- a/apps/web/ui/layout/sidebar/partner-program-dropdown.tsx
+++ b/apps/web/ui/layout/sidebar/partner-program-dropdown.tsx
@@ -74,7 +74,7 @@ export function PartnerProgramDropdown() {
<div className="p-2">
<div className="mt-0.5 flex flex-col gap-0.5">
<Link
- href="/overview"
+ href="/"
className={cn(
"flex items-center gap-x-2.5 rounded-md px-2.5 py-2 text-base transition-all duration-75 hover:bg-neutral-200/50 active:bg-neutral-200/80 sm:text-sm",
"outline-none focus-visible:ring-2 focus-visible:ring-black/50",
diff --git a/apps/web/ui/layout/sidebar/partners-sidebar-nav.tsx b/apps/web/ui/layout/sidebar/partners-sidebar-nav.tsx
index 2731bce366..151a035274 100644
--- a/apps/web/ui/layout/sidebar/partners-sidebar-nav.tsx
+++ b/apps/web/ui/layout/sidebar/partners-sidebar-nav.tsx
@@ -73,7 +73,8 @@ const NAV_GROUPS: SidebarNavGroups<SidebarNavData> = ({
description:
"View all your enrolled programs and review invitations to other programs.",
icon: GridIcon,
- href: "/overview",
+ // the middleware sends "/" to /overview or /programs, depending on the partner's programs
+ href: "/",
active: ["/overview", "/programs", "/marketplace"].some((p) =>
pathname.startsWith(p),
),