Skip to content

Commit

Permalink
profile finished course link fix
Browse files Browse the repository at this point in the history
  • Loading branch information
Nathan James committed Dec 7, 2022
1 parent e15c4e2 commit 62d6152
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions frontend/pages/profile/_id.vue
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@
<section v-if="unfinishedCourses.length">
<figure class="course-category">Keep learning</figure>
<section class="courses">
<NuxtLink :to="`course/`" :key="progress.course.course_slug_hash" v-for="progress in unfinishedCourses">
<NuxtLink :to="`/course/${progress.course.slug}`" :key="progress.course.course_slug_hash" v-for="progress in unfinishedCourses">
<CourseBlank :withPercentage="true"
:title="progress.course.title"
:description="progress.course.description" />
Expand All @@ -33,7 +33,7 @@
<section v-if="finishedCourses.length">
<figure class="course-category">Completed courses</figure>
<section class="courses">
<NuxtLink :to="`course/`" :key="progress.course.course_slug_hash" v-for="progress in finishedCourses">
<NuxtLink :to="`/course/${progress.course.slug}`" :key="progress.course.course_slug_hash" v-for="progress in finishedCourses">
<CourseBlank :withPercentage="true"
:percentage="progress.score"
:title="progress.course.title"
Expand Down

0 comments on commit 62d6152

Please sign in to comment.