mirror of
https://github.com/kamranahmedse/developer-roadmap.git
synced 2026-09-24 15:00:31 +08: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