From e55d4dcff41bed6a7e274d189695b7b98dd267d0 Mon Sep 17 00:00:00 2001 From: jwinterm Date: Mon, 20 Apr 2026 10:53:01 -0400 Subject: [PATCH] Rename /links to /apps, add Apps to header, rename Products to Portfolio --- apps/web/next.config.js | 9 +++++++++ apps/web/src/app/{links => apps}/page.tsx | 4 ++-- apps/web/src/app/sitemap.ts | 2 +- apps/web/src/components/layout/header.tsx | 8 +++++++- apps/web/src/components/layout/mobile-nav.tsx | 2 +- 5 files changed, 20 insertions(+), 5 deletions(-) rename apps/web/src/app/{links => apps}/page.tsx (98%) diff --git a/apps/web/next.config.js b/apps/web/next.config.js index c147ce5..057f22e 100644 --- a/apps/web/next.config.js +++ b/apps/web/next.config.js @@ -1,6 +1,15 @@ /** @type {import('next').NextConfig} */ const nextConfig = { transpilePackages: ["@repo/ui"], + async redirects() { + return [ + { + source: "/links", + destination: "/apps", + permanent: true, + }, + ]; + }, }; module.exports = nextConfig; \ No newline at end of file diff --git a/apps/web/src/app/links/page.tsx b/apps/web/src/app/apps/page.tsx similarity index 98% rename from apps/web/src/app/links/page.tsx rename to apps/web/src/app/apps/page.tsx index 7a3a5d2..25903d7 100644 --- a/apps/web/src/app/links/page.tsx +++ b/apps/web/src/app/apps/page.tsx @@ -6,9 +6,9 @@ import Link from "next/link"; import type { Metadata } from "next"; export const metadata: Metadata = { - title: "Links | Such Software", + title: "Apps | Such Software", description: "Download our apps on App Store and Google Play.", - alternates: { canonical: "/links" }, + alternates: { canonical: "/apps" }, openGraph: { title: "Such Software Apps", description: "Download our apps on App Store and Google Play.", diff --git a/apps/web/src/app/sitemap.ts b/apps/web/src/app/sitemap.ts index 91534da..e59e58b 100644 --- a/apps/web/src/app/sitemap.ts +++ b/apps/web/src/app/sitemap.ts @@ -20,7 +20,7 @@ export default function sitemap(): MetadataRoute.Sitemap { { url: `${base}/support`, lastModified: new Date(), changeFrequency: "monthly", priority: 0.5 }, { url: `${base}/privacy`, lastModified: new Date(), changeFrequency: "yearly", priority: 0.3 }, { url: `${base}/terms`, lastModified: new Date(), changeFrequency: "yearly", priority: 0.3 }, - { url: `${base}/links`, lastModified: new Date(), changeFrequency: "monthly", priority: 0.5 }, + { url: `${base}/apps`, lastModified: new Date(), changeFrequency: "monthly", priority: 0.5 }, { url: `${base}/blog`, lastModified: new Date(), changeFrequency: "weekly", priority: 0.8 }, ]; diff --git a/apps/web/src/components/layout/header.tsx b/apps/web/src/components/layout/header.tsx index 523d6df..1716019 100644 --- a/apps/web/src/components/layout/header.tsx +++ b/apps/web/src/components/layout/header.tsx @@ -24,7 +24,13 @@ export function Header() { href="/products" className={pathname.startsWith("/products") ? "text-primary" : "hover:text-primary transition-colors"} > - Products + Portfolio + + + Apps