From 3b12130579f9b7ed3c75f29aea30519ffdca9b92 Mon Sep 17 00:00:00 2001 From: Kamran Ahmed Date: Fri, 20 Jan 2023 20:57:58 +0400 Subject: [PATCH] Handle legacy roadmap urls --- src/pages/404.astro | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/pages/404.astro b/src/pages/404.astro index a57b1c2a0..cfcce5450 100644 --- a/src/pages/404.astro +++ b/src/pages/404.astro @@ -4,7 +4,7 @@ import BaseLayout from '../layouts/BaseLayout.astro'; import { getRoadmapIds } from '../lib/roadmap'; const roadmapIds = await getRoadmapIds(); -const legacyRoadmapUrls = roadmapIds.map((id) => `/${id}/`); +const legacyRoadmapUrls = [...roadmapIds.map((id) => `/${id}/`), '/roadmaps/']; ---