Skip to content

Commit 0c83fbf

Browse files
authored
fix router link (#679)
2 parents 3ab6fd6 + 2f0d560 commit 0c83fbf

File tree

1 file changed

+5
-3
lines changed

1 file changed

+5
-3
lines changed

packages/platform-ui/src/components/Courses/CourseStubCard.vue

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -13,9 +13,7 @@
1313
</v-card-text>
1414

1515
<v-card-actions>
16-
<router-link :to="`/q/${courseConfig.name.replaceAll(' ', '_')}`" style="text-decoration: none">
17-
<v-btn color="primary">More Info</v-btn>
18-
</router-link>
16+
<v-btn color="primary" @click="navigateToInfo">More Info</v-btn>
1917
<v-btn data-cy="register-course-button" :loading="addingCourse" color="primary" @click="registerForCourse">
2018
Register
2119
</v-btn>
@@ -69,6 +67,10 @@ export default defineComponent({
6967
await (await getCurrentUser()).registerForCourse(this.courseId);
7068
this.$emit('refresh');
7169
},
70+
navigateToInfo() {
71+
const path = `/q/${this.courseConfig?.name.replaceAll(' ', '_')}`;
72+
this.$router.push(path);
73+
},
7274
},
7375
});
7476
</script>

0 commit comments

Comments
 (0)