From aee51ee43e6fbf87d1acec2386fa0d4beb842b10 Mon Sep 17 00:00:00 2001 From: Kamran Ahmed Date: Fri, 20 Jan 2023 21:13:38 +0400 Subject: [PATCH] Handle legacy roadmap urls --- src/components/InteractiveRoadmap/topic.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/components/InteractiveRoadmap/topic.js b/src/components/InteractiveRoadmap/topic.js index 116ff7e73..3f12127e9 100644 --- a/src/components/InteractiveRoadmap/topic.js +++ b/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) => {