diff --git a/src/components/GenerateRoadmap/GenerateRoadmap.tsx b/src/components/GenerateRoadmap/GenerateRoadmap.tsx index 98e03b82e..875d36905 100644 --- a/src/components/GenerateRoadmap/GenerateRoadmap.tsx +++ b/src/components/GenerateRoadmap/GenerateRoadmap.tsx @@ -168,10 +168,13 @@ export function GenerateRoadmap() { const roadmapId = result.match(ROADMAP_ID_REGEX)?.[1] || ''; setUrlParams({ id: roadmapId }); result = result.replace(ROADMAP_ID_REGEX, ''); + const roadmapTitle = + result.trim().split('\n')[0]?.replace('#', '')?.trim() || term; + setRoadmapTerm(roadmapTitle); setCurrentRoadmap({ id: roadmapId, term: roadmapTerm, - title: term, + title: roadmapTitle, data: result, }); } diff --git a/src/components/GenerateRoadmap/RoadmapSearch.tsx b/src/components/GenerateRoadmap/RoadmapSearch.tsx index 711eaac8d..7615cb3b9 100644 --- a/src/components/GenerateRoadmap/RoadmapSearch.tsx +++ b/src/components/GenerateRoadmap/RoadmapSearch.tsx @@ -253,7 +253,7 @@ export function RoadmapSearch(props: RoadmapSearchProps) { > {limitUsed} of {limit} {' '} - roadmaps. + roadmaps today.
{isAuthenticatedUser && (