mirror of
https://github.com/kamranahmedse/developer-roadmap.git
synced 2025-08-29 20:21:50 +02:00
Handle legacy roadmap urls
This commit is contained in:
@@ -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) => {
|
||||
|
Reference in New Issue
Block a user