Handle legacy roadmap urls

pull/3333/head
Kamran Ahmed 2 years ago
parent 3b12130579
commit aee51ee43e
  1. 2
      src/components/InteractiveRoadmap/topic.js

@ -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) => {

Loading…
Cancel
Save