The modern link attribution platform. Loved by world-class engineering teams at Twilio, Zillow, Jobber, Vercel, Raycast, and more.
TypeScript clickhousemysqlnextjsopen-sourceplanetscaleprismatailwindcsstinybirdtypescriptupstashvercel
update path
Kiran K5438bfe9f622
diff --git a/apps/web/app/(ee)/api/partner-profile/invoices/[payoutId]/route.tsx b/apps/web/app/(ee)/partners.dub.co/(dashboard)/invoices/[payoutId]/route.tsxsimilarity index 98%rename from apps/web/app/(ee)/api/partner-profile/invoices/[payoutId]/route.tsxrename to apps/web/app/(ee)/partners.dub.co/(dashboard)/invoices/[payoutId]/route.tsxindex 1cc7c76b35..4d7c711dbe 100644--- a/apps/web/app/(ee)/api/partner-profile/invoices/[payoutId]/route.tsx+++ b/apps/web/app/(ee)/partners.dub.co/(dashboard)/invoices/[payoutId]/route.tsx@@ -28,7 +28,7 @@ const tw = createTw({},});-// GET /api/partner-profile/invoices/[payoutId] - get the invoice for a payout+// GET /partners.dub.co/invoices/[payoutId] - get the invoice for a payoutexport const GET = withPartnerProfile(async ({ partner, params }) => {const { payoutId } = params;diff --git a/apps/web/app/(ee)/partners.dub.co/(dashboard)/settings/payouts/payout-details-sheet.tsx b/apps/web/app/(ee)/partners.dub.co/(dashboard)/settings/payouts/payout-details-sheet.tsxindex 09d4e0f85b..4af9e432f7 100644--- a/apps/web/app/(ee)/partners.dub.co/(dashboard)/settings/payouts/payout-details-sheet.tsx+++ b/apps/web/app/(ee)/partners.dub.co/(dashboard)/settings/payouts/payout-details-sheet.tsx@@ -92,7 +92,7 @@ function PayoutDetailsSheetContent({ payout }: PayoutDetailsSheetProps) {<Tooltip content="View invoice"><div className="flex h-5 w-5 items-center justify-center rounded-md transition-colors duration-150 hover:border hover:border-neutral-200 hover:bg-neutral-100"><Link- href={`/api/partner-profile/invoices/${payout.id}`}+ href={`/invoices/${payout.id}`}className="text-neutral-700"target="_blank"rel="noopener noreferrer"diff --git a/apps/web/app/(ee)/partners.dub.co/(dashboard)/settings/payouts/payout-table.tsx b/apps/web/app/(ee)/partners.dub.co/(dashboard)/settings/payouts/payout-table.tsxindex 3b9d588e57..921b3cc557 100644--- a/apps/web/app/(ee)/partners.dub.co/(dashboard)/settings/payouts/payout-table.tsx+++ b/apps/web/app/(ee)/partners.dub.co/(dashboard)/settings/payouts/payout-table.tsx@@ -106,7 +106,7 @@ export function PayoutTable() {<Tooltip content="View invoice"><div className="flex h-5 w-5 items-center justify-center rounded-md transition-colors duration-150 hover:border hover:border-neutral-200 hover:bg-neutral-100"><Link- href={`/api/partner-profile/invoices/${row.original.id}`}+ href={`/invoices/${row.original.id}`}className="text-neutral-700"target="_blank"rel="noopener noreferrer"