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.

stash d.to/register → app.dub.co/register

Steven Tey9ca22b1d3e79
diff --git a/apps/web/app/[domain]/not-found/page.tsx b/apps/web/app/[domain]/not-found/page.tsx
index 85db923fbe..18d17f0ea6 100644
--- a/apps/web/app/[domain]/not-found/page.tsx
+++ b/apps/web/app/[domain]/not-found/page.tsx
@@ -58,7 +58,7 @@ export default function NotFoundLinkPage({
"animate-slide-up-fade motion-reduce:animate-fade-in [--offset:5px] [animation-delay:300ms] [animation-duration:1s] [animation-fill-mode:both]",
)}
>
- <ButtonLink variant="primary" href="https://d.to/register">
+ <ButtonLink variant="primary" href="https://app.dub.co/register">
Try Dub today
</ButtonLink>
<ButtonLink
diff --git a/apps/web/app/[domain]/placeholder.tsx b/apps/web/app/[domain]/placeholder.tsx
index 60476a13f3..c8589e2daf 100644
--- a/apps/web/app/[domain]/placeholder.tsx
+++ b/apps/web/app/[domain]/placeholder.tsx
@@ -53,7 +53,7 @@ export default function PlaceholderContent() {
"animate-slide-up-fade motion-reduce:animate-fade-in [--offset:5px] [animation-delay:300ms] [animation-duration:1s] [animation-fill-mode:both]",
)}
>
- <ButtonLink variant="primary" href="https://d.to/register">
+ <ButtonLink variant="primary" href="https://app.dub.co/register">
Try Dub today
</ButtonLink>
<ButtonLink
diff --git a/apps/web/app/banned/page.tsx b/apps/web/app/banned/page.tsx
index 6e464fc4df..5d13fb9da4 100644
--- a/apps/web/app/banned/page.tsx
+++ b/apps/web/app/banned/page.tsx
@@ -58,7 +58,7 @@ export default async function BannedPage({
"animate-slide-up-fade motion-reduce:animate-fade-in [--offset:5px] [animation-delay:300ms] [animation-duration:1s] [animation-fill-mode:both]",
)}
>
- <ButtonLink variant="primary" href="https://d.to/register">
+ <ButtonLink variant="primary" href="https://app.dub.co/register">
Try Dub today
</ButtonLink>
<ButtonLink
diff --git a/apps/web/app/expired/[domain]/page.tsx b/apps/web/app/expired/[domain]/page.tsx
index 4f9db0282d..c5acf93a98 100644
--- a/apps/web/app/expired/[domain]/page.tsx
+++ b/apps/web/app/expired/[domain]/page.tsx
@@ -68,7 +68,7 @@ export default async function ExpiredLinkPage({
"animate-slide-up-fade motion-reduce:animate-fade-in [--offset:5px] [animation-delay:300ms] [animation-duration:1s] [animation-fill-mode:both]",
)}
>
- <ButtonLink variant="primary" href="https://d.to/register">
+ <ButtonLink variant="primary" href="https://app.dub.co/register">
Try Dub today
</ButtonLink>
<ButtonLink
diff --git a/apps/web/ui/placeholders/cta.tsx b/apps/web/ui/placeholders/cta.tsx
index d5a0389bce..2ba71de2d4 100644
--- a/apps/web/ui/placeholders/cta.tsx
+++ b/apps/web/ui/placeholders/cta.tsx
@@ -100,7 +100,7 @@ export function CTA({
</div>
<div className="relative mx-auto mt-10 flex max-w-fit space-x-4">
- <ButtonLink variant="primary" href="https://d.to/register">
+ <ButtonLink variant="primary" href="https://app.dub.co/register">
Start for free
</ButtonLink>
<ButtonLink
diff --git a/packages/ui/src/nav/nav.tsx b/packages/ui/src/nav/nav.tsx
index dcda7e256b..40f454246c 100644
--- a/packages/ui/src/nav/nav.tsx
+++ b/packages/ui/src/nav/nav.tsx
@@ -3,7 +3,6 @@
import { APP_DOMAIN, cn, createHref, fetcher } from "@dub/utils";
import * as NavigationMenuPrimitive from "@radix-ui/react-navigation-menu";
import { LayoutGroup } from "framer-motion";
-import Cookies from "js-cookie";
import Link from "next/link";
import { useParams, usePathname } from "next/navigation";
import { PropsWithChildren, SVGProps, createContext, useId } from "react";
@@ -90,12 +89,6 @@ export function Nav({
},
);
- // here we need to check if the user has a dub_id cookie
- // if they do, we should just use app.dub.co links
- // if not, we can use conversion-enabled d.to links
- const hasDubCookie =
- domain === "dub.co" && Cookies.get("dub_id") ? true : false;
-
return (
<NavContext.Provider value={{ theme }}>
<LayoutGroup id={layoutGroupId}>
@@ -203,11 +196,7 @@ export function Nav({
) : !isLoading ? (
<>
<Link
- href={
- hasDubCookie
- ? "https://app.dub.co/login"
- : "https://d.to/login"
- }
+ href="https://app.dub.co/login"
className={cn(
buttonVariants({ variant: "secondary" }),
"flex h-8 items-center rounded-lg border px-4 text-sm",
@@ -217,11 +206,7 @@ export function Nav({
Log in
</Link>
<Link
- href={
- hasDubCookie
- ? "https://app.dub.co/register"
- : "https://d.to/register"
- }
+ href="https://app.dub.co/register"
className={cn(
buttonVariants({ variant: "primary" }),
"flex h-8 items-center rounded-lg border px-4 text-sm",