mirror of
https://github.com/kamranahmedse/developer-roadmap.git
synced 2025-08-31 04:59:50 +02:00
Handle legacy roadmap urls
This commit is contained in:
@@ -4,7 +4,7 @@ import BaseLayout from '../layouts/BaseLayout.astro';
|
|||||||
import { getRoadmapIds } from '../lib/roadmap';
|
import { getRoadmapIds } from '../lib/roadmap';
|
||||||
|
|
||||||
const roadmapIds = await getRoadmapIds();
|
const roadmapIds = await getRoadmapIds();
|
||||||
const legacyRoadmapUrls = roadmapIds.map((id) => `/${id}/`);
|
const legacyRoadmapUrls = [...roadmapIds.map((id) => `/${id}/`), '/roadmaps/'];
|
||||||
---
|
---
|
||||||
|
|
||||||
<BaseLayout title='Page not found' permalink={'/404'}>
|
<BaseLayout title='Page not found' permalink={'/404'}>
|
||||||
|
Reference in New Issue
Block a user