Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions src/sections/Learn-Layer5/Course-Overview/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,7 @@ const CourseOverview = ({ course, chapters, serviceMeshesList, children }) => {
return (
<CourseOverviewWrapper>
<div className="course-back-btn">
<Link to={"/learn/learning-paths/${course.fields.learnpath}"}>
<Link to={`/learn/learning-paths/${course.fields.learnpath}`}>
<IoChevronBackOutline /> <h4>Learning Paths/Courses</h4>
</Link>
</div>
Expand All @@ -87,7 +87,7 @@ const CourseOverview = ({ course, chapters, serviceMeshesList, children }) => {
</div>
<Button
title={hasBookmark ? "Start Again" : "Get Started"}
$url={getChapterTitle(course.frontmatter.toc[0], chapters) ? "/${getChapterTitle(course.frontmatter.toc[0], chapters).fields.slug}" : "#"}
$url={getChapterTitle(course.frontmatter.toc[0], chapters) ? `/${getChapterTitle(course.frontmatter.toc[0], chapters).fields.slug}` : "#"}
/>
{hasBookmark && (
<Button
Expand Down
2 changes: 1 addition & 1 deletion src/sections/Learn-Layer5/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -104,7 +104,7 @@ const LearnPathsPage = () => {
<Row className="learning-path-cards">
{data.learnPaths.nodes.map((tutorial) => (
<Col $sm={6} key={tutorial.id} style={{ marginTop: "2rem" }}>
<CardComponent tutorial={tutorial} path={tutorial.fields.learnpath} courseCount={getCoursesOfaLearningPath(tutorial.fields.learnpath).length} />
<CardComponent tutorial={tutorial} path={`/${tutorial.fields.slug}`} courseCount={getCoursesOfaLearningPath(tutorial.fields.learnpath).length} />
</Col>
))}
</Row>
Expand Down
2 changes: 1 addition & 1 deletion src/sections/Learn/LearnPage-Sections/learning-path.js
Original file line number Diff line number Diff line change
Expand Up @@ -90,7 +90,7 @@ const LearningPaths = () => {
<Row className="learning-path-cards">
{data.learnPaths.nodes.map((tutorial) => (
<Col $sm={6} key={tutorial.id}>
<CardComponent tutorial={tutorial} path={`learning-paths/${tutorial.fields.learnpath}`} courseCount={getCoursesOfaLearningPath(tutorial.fields.learnpath).length} />
<CardComponent tutorial={tutorial} path={`/learn/learning-paths/${tutorial.fields.learnpath}`} courseCount={getCoursesOfaLearningPath(tutorial.fields.learnpath).length} />
</Col>
))}
</Row>
Expand Down