Handle legacy roadmap urls

pull/3333/head
Kamran Ahmed 2 years ago
parent 3dd9429338
commit 3b12130579
  1. 2
      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/'];
---
<BaseLayout title='Page not found' permalink={'/404'}>

Loading…
Cancel
Save