Skip to content

armgit / Cap

Public Imported from GitHub
0

Open source Loom alternative. Beautiful, shareable screen recordings.

feat: add canonical tag to /home

Richie McIlroy2d78cf168c5e
diff --git a/apps/web/app/home/page.tsx b/apps/web/app/home/page.tsx
index 7f27da9ef..5a897ebf0 100644
--- a/apps/web/app/home/page.tsx
+++ b/apps/web/app/home/page.tsx
@@ -6,6 +6,9 @@ export const metadata: Metadata = {
index: false,
follow: false,
},
+ alternates: {
+ canonical: "https://cap.so/",
+ },
};
export default async function Home() {
diff --git a/apps/web/app/robots.ts b/apps/web/app/robots.ts
index cbcbdffda..bdbbeab43 100644
--- a/apps/web/app/robots.ts
+++ b/apps/web/app/robots.ts
@@ -20,12 +20,12 @@ export default function robots(): MetadataRoute.Robots {
// Be more specific about what we're disallowing under /s/
disallow: [
"/dashboard",
- "/s/*", // This will match /s/ and anything under it
+ "/s/*",
"/login",
"/invite",
"/onboarding",
"/record",
- "/home", // Explicitly disallow the /home route
+ "/home",
],
},
],
diff --git a/apps/web/components/Navbar.tsx b/apps/web/components/Navbar.tsx
index 9273b09b1..54f69f7e9 100644
--- a/apps/web/components/Navbar.tsx
+++ b/apps/web/components/Navbar.tsx
@@ -112,7 +112,7 @@ export const Navbar = ({ auth }: { auth: boolean }) => {
<div className="fixed border-b border-b-zinc-100 inset-0 z-20 p-4 w-full backdrop-blur-md bg-white/70 h-[60px]">
<div className="flex justify-between items-center mx-auto max-w-3xl h-full transition-all">
<div className="flex items-center">
- <Link passHref href="/">
+ <Link passHref href="/home">
<Logo className="w-[90px]" />
</Link>
<div className="hidden md:block">