mirror of
https://github.com/kamranahmedse/developer-roadmap.git
synced 2025-08-30 04:30:01 +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';
|
||||
|
||||
const roadmapIds = await getRoadmapIds();
|
||||
const legacyRoadmapUrls = roadmapIds.map((id) => `/${id}/`);
|
||||
const legacyRoadmapUrls = [...roadmapIds.map((id) => `/${id}/`), '/roadmaps/'];
|
||||
---
|
||||
|
||||
<BaseLayout title='Page not found' permalink={'/404'}>
|
||||
|
Reference in New Issue
Block a user