From d54b8c67018341cfc12eb447f224760ad5902baa Mon Sep 17 00:00:00 2001 From: Max Ghenis Date: Thu, 21 May 2026 17:51:27 -0400 Subject: [PATCH] Rename cliff-watch route to cliffwatch and mirror on UK Renames the canonical URL slug from /us/cliff-watch to /us/cliffwatch (matching the app's new "CliffWatch" branding) and mirrors at /uk/cliffwatch so PolicyEngine.org users on either country prefix land on the same multizone destination. Permanent redirects from /:countryId/cliff-watch and /:countryId/cliff-watch/:path* preserve existing inbound links. The /uk/cliffwatch rewrite appends ?country=uk to the destination, the same pattern UK marriage uses; the cliff-watch app currently only models US households but can read the param when UK support lands. apps.json: slug + title updated to match (CliffWatch one word). Co-Authored-By: Claude Opus 4.7 (1M context) --- app/src/data/apps/apps.json | 4 ++-- website/next.config.ts | 11 +++++++++++ website/src/data/appZoneRoutes.ts | 7 ++++++- 3 files changed, 19 insertions(+), 3 deletions(-) diff --git a/app/src/data/apps/apps.json b/app/src/data/apps/apps.json index 7622b0d4f..306083c25 100644 --- a/app/src/data/apps/apps.json +++ b/app/src/data/apps/apps.json @@ -255,8 +255,8 @@ }, { "type": "iframe", - "slug": "cliff-watch", - "title": "Cliff Watch", + "slug": "cliffwatch", + "title": "CliffWatch", "description": "Interactive calculator showing how benefits, refundable tax credits, taxes, and net income change for US households as earnings rise", "source": "https://cliff-watch.vercel.app/", "tags": ["us", "featured", "policy", "interactives"], diff --git a/website/next.config.ts b/website/next.config.ts index 1fdd720d6..642a57196 100644 --- a/website/next.config.ts +++ b/website/next.config.ts @@ -66,6 +66,17 @@ const nextConfig: NextConfig = { destination: "/us/california-wealth-tax/:path*", permanent: true, }, + // CliffWatch renamed from cliff-watch → cliffwatch + { + source: "/:countryId/cliff-watch", + destination: "/:countryId/cliffwatch", + permanent: true, + }, + { + source: "/:countryId/cliff-watch/:path*", + destination: "/:countryId/cliffwatch/:path*", + permanent: true, + }, ]; }, diff --git a/website/src/data/appZoneRoutes.ts b/website/src/data/appZoneRoutes.ts index 234d5079b..d22bf2273 100644 --- a/website/src/data/appZoneRoutes.ts +++ b/website/src/data/appZoneRoutes.ts @@ -115,10 +115,15 @@ export const appZoneRoutes: AppZoneRoute[] = [ "https://coverage-compass-policy-engine.vercel.app/us/coverage-compass", }, { - source: "/us/cliff-watch", + source: "/us/cliffwatch", destination: "https://cliff-watch.vercel.app/", deepDestination: "https://cliff-watch.vercel.app/:path*", }, + { + source: "/uk/cliffwatch", + destination: "https://cliff-watch.vercel.app/?country=uk", + deepDestination: "https://cliff-watch.vercel.app/:path*?country=uk", + }, { source: "/us/marriage", destination: "https://marriage-zeta-beryl.vercel.app/us/marriage",