Skip to content

Commit 93755cc

Browse files
Merge pull request #7271 from kishore08-07/fix-broken-links
Fixed broken links in learning-paths
2 parents 97da9c4 + 62199ae commit 93755cc

File tree

3 files changed

+4
-4
lines changed

3 files changed

+4
-4
lines changed

src/sections/Learn-Layer5/Course-Overview/index.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -63,7 +63,7 @@ const CourseOverview = ({ course, chapters, serviceMeshesList, children }) => {
6363
return (
6464
<CourseOverviewWrapper>
6565
<div className="course-back-btn">
66-
<Link to={"/learn/learning-paths/${course.fields.learnpath}"}>
66+
<Link to={`/learn/learning-paths/${course.fields.learnpath}`}>
6767
<IoChevronBackOutline /> <h4>Learning Paths/Courses</h4>
6868
</Link>
6969
</div>
@@ -87,7 +87,7 @@ const CourseOverview = ({ course, chapters, serviceMeshesList, children }) => {
8787
</div>
8888
<Button
8989
title={hasBookmark ? "Start Again" : "Get Started"}
90-
$url={getChapterTitle(course.frontmatter.toc[0], chapters) ? "/${getChapterTitle(course.frontmatter.toc[0], chapters).fields.slug}" : "#"}
90+
$url={getChapterTitle(course.frontmatter.toc[0], chapters) ? `/${getChapterTitle(course.frontmatter.toc[0], chapters).fields.slug}` : "#"}
9191
/>
9292
{hasBookmark && (
9393
<Button

src/sections/Learn-Layer5/index.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -104,7 +104,7 @@ const LearnPathsPage = () => {
104104
<Row className="learning-path-cards">
105105
{data.learnPaths.nodes.map((tutorial) => (
106106
<Col $sm={6} key={tutorial.id} style={{ marginTop: "2rem" }}>
107-
<CardComponent tutorial={tutorial} path={tutorial.fields.learnpath} courseCount={getCoursesOfaLearningPath(tutorial.fields.learnpath).length} />
107+
<CardComponent tutorial={tutorial} path={`/${tutorial.fields.slug}`} courseCount={getCoursesOfaLearningPath(tutorial.fields.learnpath).length} />
108108
</Col>
109109
))}
110110
</Row>

src/sections/Learn/LearnPage-Sections/learning-path.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -90,7 +90,7 @@ const LearningPaths = () => {
9090
<Row className="learning-path-cards">
9191
{data.learnPaths.nodes.map((tutorial) => (
9292
<Col $sm={6} key={tutorial.id}>
93-
<CardComponent tutorial={tutorial} path={`learning-paths/${tutorial.fields.learnpath}`} courseCount={getCoursesOfaLearningPath(tutorial.fields.learnpath).length} />
93+
<CardComponent tutorial={tutorial} path={`/learn/learning-paths/${tutorial.fields.learnpath}`} courseCount={getCoursesOfaLearningPath(tutorial.fields.learnpath).length} />
9494
</Col>
9595
))}
9696
</Row>

0 commit comments

Comments
 (0)