Skip to content

Commit f502c33

Browse files
authored
Fix link syntax in Course Overview component
Signed-off-by: Lee Calcote <leecalcote@gmail.com>
1 parent f8d6fba commit f502c33

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

  • src/sections/Learn-Layer5/Course-Overview

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

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -64,7 +64,7 @@ const CourseOverview = ({ course, chapters, serviceMeshesList, children }) => {
6464
return (
6565
<CourseOverviewWrapper>
6666
<div className="course-back-btn">
67-
<Link to={`/learn/learning-paths/${course.fields.learnpath}`}>
67+
<Link to={"/learn/learning-paths/${course.fields.learnpath}"}>
6868
<IoChevronBackOutline /> <h4>Learning Paths/Courses</h4>
6969
</Link>
7070
</div>
@@ -88,7 +88,7 @@ const CourseOverview = ({ course, chapters, serviceMeshesList, children }) => {
8888
</div>
8989
<Button
9090
title={hasBookmark ? "Start Again" : "Get Started"}
91-
$url={getChapterTitle(course.frontmatter.toc[0], chapters) ? `/${getChapterTitle(course.frontmatter.toc[0], chapters).fields.slug}` : `#`}
91+
$url={getChapterTitle(course.frontmatter.toc[0], chapters) ? "/${getChapterTitle(course.frontmatter.toc[0], chapters).fields.slug}" : "#"}
9292
/>
9393
{hasBookmark && (
9494
<Button
@@ -118,7 +118,7 @@ const CourseOverview = ({ course, chapters, serviceMeshesList, children }) => {
118118
return (
119119
<Link
120120
key={index}
121-
to={chapterNode ? `/${chapterNode.fields.slug}` : "#"}
121+
to={chapterNode ? "/${chapterNode.fields.slug}" : "#"}
122122
className="chapter-link"
123123
>
124124
<ChapterCard

0 commit comments

Comments
 (0)