The modern link attribution platform. Loved by world-class engineering teams at Twilio, Zillow, Jobber, Vercel, Raycast, and more.
TypeScript clickhousemysqlnextjsopen-sourceplanetscaleprismatailwindcsstinybirdtypescriptupstashvercel
fix
Steven Tey4871ad0fedd1
diff --git a/apps/web/lib/auth/index.ts b/apps/web/lib/auth/index.tsindex 26bb7cd9e7..3ee8378f1b 100644--- a/apps/web/lib/auth/index.ts+++ b/apps/web/lib/auth/index.ts@@ -233,7 +233,7 @@ export const withAuth =id: linkId,},})- : domain && key+ : domain && key && key !== "_root"? prisma.link.findUnique({where: {domain_key: {@@ -340,7 +340,7 @@ export const withAuth =}// link checks (if linkId or domain and key are provided)- if (linkId || (domain && key)) {+ if (linkId || (domain && key && key !== "_root")) {// if link doesn't existif (!link) {return new Response("Link not found.", {diff --git a/apps/web/ui/modals/add-edit-link-modal/index.tsx b/apps/web/ui/modals/add-edit-link-modal/index.tsxindex a86bb63aba..53914e005f 100644--- a/apps/web/ui/modals/add-edit-link-modal/index.tsx+++ b/apps/web/ui/modals/add-edit-link-modal/index.tsx@@ -490,17 +490,11 @@ function AddEditLinkModal({props && lockKey ? "cursor-not-allowed" : ""} w-40 rounded-l-md border border-r-0 border-gray-300 bg-gray-50 px-5 text-sm text-gray-500 focus:border-gray-300 focus:outline-none focus:ring-0`}>- {domains- // temporarily remove chatg.pt from the list of domains- ?.filter(- ({ slug: domainSlug }) =>- slug || domainSlug !== "chatg.pt",- )- .map(({ slug }) => (- <option key={slug} value={slug}>- {punycode.toUnicode(slug || "")}- </option>- ))}+ {domains?.map(({ slug }) => (+ <option key={slug} value={slug}>+ {punycode.toUnicode(slug || "")}+ </option>+ ))}</select><inputref={keyRef}