Papermark is the open-source DocSend alternative and secure data rooms with built-in analytics and custom domains.
fix: remove /home
Marc Seitzfd1645bab7c9
diff --git a/components/view/access-form/index.tsx b/components/view/access-form/index.tsxindex 041de529..fffbc751 100644--- a/components/view/access-form/index.tsx+++ b/components/view/access-form/index.tsx@@ -211,7 +211,7 @@ export default function AccessForm({<p className="text-center text-sm tracking-tight text-gray-500">This document is securely shared with you using{" "}<a- href="https://www.papermark.com/home"+ href="https://www.papermark.com"target="_blank"rel="noopener noreferrer"className="font-medium hover:text-gray-600"diff --git a/components/view/dataroom/nav-dataroom.tsx b/components/view/dataroom/nav-dataroom.tsxindex 56e8e0f2..24460721 100644--- a/components/view/dataroom/nav-dataroom.tsx+++ b/components/view/dataroom/nav-dataroom.tsx@@ -141,7 +141,7 @@ export default function DataroomNav({/>) : (<Link- href={`https://www.papermark.com/home?utm_campaign=navbar&utm_medium=navbar&utm_source=papermark-${linkId}`}+ href={`https://www.papermark.com?utm_campaign=navbar&utm_medium=navbar&utm_source=papermark-${linkId}`}target="_blank"className="text-2xl font-bold tracking-tighter text-white">diff --git a/components/view/nav.tsx b/components/view/nav.tsxindex 3d02fe7b..825d5617 100644--- a/components/view/nav.tsx+++ b/components/view/nav.tsx@@ -255,7 +255,7 @@ export default function Nav({/>) : (<Link- href={`https://www.papermark.com/home?utm_campaign=navbar&utm_medium=navbar&utm_source=papermark-${linkId}`}+ href={`https://www.papermark.com?utm_campaign=navbar&utm_medium=navbar&utm_source=papermark-${linkId}`}target="_blank"className="text-2xl font-bold tracking-tighter text-white">diff --git a/lib/middleware/domain.ts b/lib/middleware/domain.tsindex 4755f606..bbff568e 100644--- a/lib/middleware/domain.ts+++ b/lib/middleware/domain.ts@@ -6,7 +6,7 @@ export default async function DomainMiddleware(req: NextRequest) {const path = req.nextUrl.pathname;const host = req.headers.get("host");- // If it's the root path, redirect to papermark.com/home+ // If it's the root path, redirect to papermark.comif (path === "/") {if (host === "guide.permithealth.com") {return NextResponse.redirect(@@ -38,9 +38,7 @@ export default async function DomainMiddleware(req: NextRequest) {);}- return NextResponse.redirect(- new URL("https://www.papermark.com/home", req.url),- );+ return NextResponse.redirect(new URL("https://www.papermark.com", req.url));}const url = req.nextUrl.clone();