1
0
mirror of https://github.com/kamranahmedse/developer-roadmap.git synced 2025-08-30 12:40:03 +02:00

Handle legacy roadmap urls

This commit is contained in:
Kamran Ahmed
2023-01-20 20:57:58 +04:00
parent 3dd9429338
commit 3b12130579

View File

@@ -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'}>