1
0
mirror of https://github.com/kamranahmedse/developer-roadmap.git synced 2025-08-29 03:59:54 +02:00

Handle legacy roadmap urls

This commit is contained in:
Kamran Ahmed
2023-01-20 21:13:38 +04:00
parent 3b12130579
commit aee51ee43e

View File

@@ -117,7 +117,7 @@ export class Topic {
fetchTopicHtml(roadmapId, topicId) {
const topicPartial = topicId.replace(/^\d+-/, '').replaceAll(/:/g, '/');
const fullUrl = `/${roadmapId}/${topicPartial}/`;
const fullUrl = `/${roadmapId}/${topicPartial}`;
return fetch(fullUrl)
.then((res) => {